Skip to content

Latest commit

 

History

History

smallest-unused-id

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Hey awesome programmer!

You've got much data to manage and of course you use zero-based and non-negative ID's to make each data item unique!

Therefore you need a method, which returns the smallest unused ID for your next new data item...

Note: The given array of used IDs may be unsorted. For test reasons there may be duplicate IDs, but you don't have to find or remove them!