Resumable Iterator with Multi-Dimensional Support

Medium · Coding

Design a resumable iterator interface with JSON-serializable get_state and set_state across 1-D lists, 2-D matrices, arbitrarily nested lists, and byte-offset file line readers, plus a generic resumability test harness.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems