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.

Early April, 2026

Uber

Senior

Mid March, 2026

Uber

Senior

Mid March, 2026

Uber

Senior

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