Shuffle Playlist Verifier
A podcast platform uses two playback modes: Loop Mode (random picks, repeats allowed) and Rotation Mode (cycles through all episodes in a random order, then reshuffles and repeats). You are given allEpisodes, a list of unique episode IDs, and history, a sequence of episodes that were played. Determine if history could have been generated by Rotation Mode.
In Rotation Mode the player creates a random permutation of all episodes, plays through it completely, then creates a new random permutation and repeats indefinitely. The user may have started listening part-way through a permutation and stopped at any point. ...
More Roblox interview questions
- Request Rate Detectorhard
- Uniform Array Segmentationhard
- Best Window For Target Countmedium
- Policy Violation Notifiermedium
- Is Function Completemedium
- [Creativity Round] Preventing Harassment In-Gamehard
- Rate Limiter with Experiencehard
- [OA] Building Height Managementmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.