Data structures and algorithms
Find All Duplicates In Array
Find All Duplicates In Array: Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears once or twice, *return an array of all the integers that appears twice*.
read more