First Unique Number

Problem: First Unique Number

Design a data structure FirstUnique that supports the following operations:

  • FirstUnique(nums): initialize the data structure with an integer array. The numbers ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: