Implement a Lazy Tee Iterator in Python

Read the full interview experience this question came from →

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

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.

Read the full Google Software Engineer interview experience this question came from

Google logo
Google
Aug 2, 2026
hardSoftware EngineerTechnical ScreenSoftware Engineering Fundamentals
4
0
Loading...