287. Find the Duplicate Number
Problem Statement
Input: nums = [1,3,4,2,2]
Output: 2Input: nums = [3,1,3,4,2]
Output: 3Intuition
Links
Video Links
Approach 1:
Approach 2:
Approach 3:
Approach 4:
Similar Problems
Last updated