Google logoGoogle
CodingMembers

Implement Python's itertools.tee

Members only

Implement the behavior of Python's `tee`: accept one iterator and an integer `n`, then return `n` independent iterators over the same source sequence. Define the required function and classes yourself...

SWE
iterator
queue
data-structure
object-design
medium
Frequency
Single report
Last asked
2026-08-20
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...