Max XOR(Contest)
Max XOR easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Max XOR easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Problem Statement :
Given an array Arr of non- negative integers of size N. The task is to find the maximum possible xor between two numbers present in the array. Input First line of input contains integer N (length of array). Next line contains N space separated integers which are numbers of array.
Constraints 2 <= N <= 100000 1 <= Arr[i] <= 10^9 Output Print the the maximum possible xor between two numbers present in the array. Example Sample Input 6 25 10 2 8 5 3
Sample Output 28
Explanation 5^25=28
link: