We’re asked to solve it in constant space O(1), but the provided solution is linear space O(N). Either change the solution or the statement to clear this up
Course: Grokking the Coding Interview: Patterns for Coding Questions - Learn Interactively
Lesson: Find all Duplicate Numbers (easy) - Grokking the Coding Interview: Patterns for Coding Questions