Double Pair Array
medium
1. You are given an array(arr) of integers with even length N. 2. You have to tell if it is possible to re-order the given array such that for every i in range [0,N/2) arr[2*i + 1] = 2 * arr[2*i], this condition holds true.
Constraints
1 <= N <= 10^4 -10^5 <= arr[i] <= 10^5
Format
Input
A number N arr1 arr2.. N numbers
Output
true/false
Example
Sample Input
4
3 1 3 6
Sample Output
false