Available question text
Given out-of-order uploads of videos numbered 1..n, design a data structure that tracks the largest k such that all videos 1..k have been uploaded. Support upload(video) and longest() efficiently (amortized O(1)) by marking arrivals and advancing a pointer while consecutive videos are present.
Related questions
Continue with questions that share topics or the same question type.
- Find the Length of the Longest Common Prefix
Coding
- Longest Common Prefix
Coding · Array · String · Trie
- Longest Common Prefix After at Most One Removal
Coding
- Longest Common Prefix Between Adjacent Strings After Removals
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2424. Longest Uploaded Prefix
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source