Design a Restorable (Checkpointable) Iterator
Problem: Design a Restorable (Checkpointable) Iterator
Design an iterator wrapper RestorableIterator that wraps an existing iterator (or an array/list). In addition to normal iteration via `next...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
