Find All Duplicates — JavaScript medium interview problem
Given an integer array `nums` of length n where all integers are in the range [1, n] and each integer appears once or twice, return an array of all the integers that appear twice. Order may vary.
Tags: in-place
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.