Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.