Problem 2424 · Medium

Longest Uploaded Prefix

Videos are numbered 1 to n and arrive in any order; report how far the uploaded run reaches from 1.

Open the interactive visualisation