nums has n values and should contain every number from 1 to n exactly once, but one number appears twice and another is missing. Return [repeated, missing].
Example 1
Input:
repeating_and_missing([3, 1, 2, 5, 3])
Output:
[3, 4]
3 appears twice and 4 is missing.
Example 2
Input:
repeating_and_missing([1, 1])
Output:
[1, 2]
1 appears twice and 2 is missing.
2 <= len(nums) <= 2 * 10**51 and len(nums).No results yet
Run your code to check it against the examples, or submit to run every test.