Implement a Lazy Tee Iterator in Python

Quick Overview

Implement Python `tee` behavior as independent lazy iterators that read each source item once while handling uneven consumers, end-of-stream propagation, cleanup, and unavoidable buffering.

Implement a Lazy Tee Iterator in Python

Company: Google

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: hard

Interview Round: Technical Screen

Quick Answer: Implement Python `tee` behavior as independent lazy iterators that read each source item once while handling uneven consumers, end-of-stream propagation, cleanup, and unavoidable buffering.

|Home/Software Engineering Fundamentals/Google
Google logo
Google
Aug 2, 2026
hardSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
3
0
Loading...
Loading comments...