Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
3.6
Problem:
You are given a sequence of integers A of length N. Find the number of pairs of indices (i,j) (1≤i<j≤N) for which min(A[i],A[j])≤A[i]⊕A[j].
Here, ⊕ denotes the bitwise XOR operation.
Input Format:
Output Format:
Constraints:
2 2 1 2 3 4 5 9
1 2
A password reset link will be sent to the following email id
?