Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3237. Alt and Tab Simulation
Simulate the OS Alt+Tab behavior: given a sequence of window events (open, close, and Alt+Tab/Shift+Alt+Tab cycles), maintain the most-recently-used ordering and current focus as windows are opened, closed, and cycled through, handling wrap-around and removals. The core challenge is correct state management and efficient updates to the MRU ordering under many operations.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.