Search
⌘K

Leetcode 1429. First Unique Number

Design a data structure that, given an initial list and a stream of added numbers, returns the first integer that appears exactly once at any time. The core challenge is maintaining element frequencies while preserving insertion order so queries for the current first unique remain efficient.

Asked at:

Uber


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late May, 2026

Uber

Mid-level

Late April, 2026

Uber

Mid-level

Late April, 2026

Uber

Senior

Similar variation of this

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