Search⌘ K
AI Features

Solution: Find the Corrupt Pair

Solution: Find the Corrupt Pair gives you an unsorted array containing values from one through n, with one duplicated and another missing. Return the missing and duplicated values.

Statement

We are given an unsorted array, nums, with nn elements and each element is in the range [1,n] ...