Novo curso: Como conseguir vagas remotas em empresas que pagam $120k+/ano
NaGringa
CodingMid-level

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.

Empresas em que apareceu
UberUber
Contextos reais

Onde essa pergunta já apareceu

Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.

Uberstaff_plusmar. de 2026

Got this question on the Depth in Specialization interview. It was phrased as a system to keep track of recurrent visitors vs one time visitors. Should implement two methods: one to post a visit and other to get the first one time visitor.

Anexos públicos

Materiais associados

Nenhum anexo público associado a esta pergunta.

Próximo passo

Depois de treinar essa pergunta, vale abrir outras do mesmo tipo e da mesma senioridade para comparar padrões de resposta.

Isso ajuda a sair da memorização de uma resposta só e entrar em repertório real de entrevista.

Continue a preparação com o banco completo

No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.