You are given an array arr of n elements of positive integers. Your task is to determine the minimum absolute difference between any 2 elements of the array. You can perform the following two types of operations on the array elements any number of times:
e is even, then you can replace it by e / 2e is odd, then you can replace it by 2 * eDetermine the minimum absolute difference between any two elements after performing this operation any number of times (possibly zero) on any element of the array.
Example 1:
Input: [1, 2]
Output: 0Constraints:
T <=50n <=50000arr[i] <=10^8 for each valid iTime limit: 1 sec
It is guaranteed that summation of n over all test cases does not exceed 250000.