Crushing Tech Interviews with the Cyclic Sort Pattern
This pattern is useful when dealing with problems involving arrays containing numbers in a range.
How would you solve the following problem?
Given n distinct numbers from 0 to n. Find the missing number.
Key words to pick out here: distinct, 0 to n ...
techsloth.io2 min read