Iterator LeetCode Problems: All 9,
With Python Solutions

Every problem in this library that LeetCode tags Iterator. 5 of them carry a complete Python solution, a worked example and the time and space complexity of the approach.

Easy
1
Medium
8
Hard
0

Iterator problems by difficulty

Problems with a complete Python solution are listed first, then by ascending problem number.

Easy (1)

Easy problems
No.Problem
0604Design Compressed String IteratorPremium

Medium (8)

Medium problems
No.Problem
0173Binary Search Tree Iterator
0284Peeking Iterator
0341Flatten Nested List Iterator
0900RLE Iterator
1286Iterator for Combination
0251Flatten 2D VectorPremium
0281Zigzag IteratorPremium
1586Binary Search Tree Iterator IIPremium

Eyes only

When the Iterator problem arrives live.

In the live round, Stealth Interview reads the problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer says. It's a desktop app for macOS and Windows, invisible to screen sharing.