Tag
Design a compact recovery cursor, then implement list and file iterators in Java and Python with runnable tests and precise restart semantics.