Longest Consecutive Sequence — Arrays & Hashing

Given packet numbers that arrive in any order, report how long the biggest uninterrupted stretch of consecutive values is.

Arrays & Hashing · Medium

More in Arrays & Hashing

All algorithm problems