Find the missing and repeating number in an array in O(1) space (4-5 approaches).
Asked in the problem solving stage.
Given an array nums of length n containing integers from 1 to n, exactly one number is missing and exactly one number appears twice. Return both numbers as [repeating, missing].
find_missing_and_repeating(nums)
def find_missing_and_repeating(nums):