New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Airbnb
Coding Question
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
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected