Cached lookahead [mp]
Micro pattern¶
Description¶
Cache the next value during a readiness check so repeated checks do not advance input.
Problems¶
- 341. Flatten Nested List Iterator (Top Hard)
Cache the next value during a readiness check so repeated checks do not advance input.