Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Implement an iterator that traverses a 2D vector row-by-row.
Support removing the most recently accessed element from the underlying structure.
Provide a method to retrieve a live snapshot reflecting all removals.
What This Tests
Iterator design and internal state tracking
Index manipulation across nested collections
Dynamic array modification during traversal
State serialization and consistency
Common Patterns
Two Pointers
Iterator Design
Array Manipulation
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected