Bloomberg Interview Question

How to find the lowest positive number missing from a list?

Interview Answer

Anonymous

Jan 19, 2021

Use a HashSet to keep track of all of the elements and then count up from 1 to the length of the list to output the first one missing.