Skip to content

Problem Solving questions

psaikn edited this page Sep 15, 2018 · 1 revision

You are given a task to handle queries. In each query, you will be given three positive integers . You have to choose a number that lies in the interval [] such that is maximum, where denotes the bitwise xor operation. Can you find the maximum value of x ^ y Sample Input 0

5 2 1 10 3 5 6 6 3 10 4 2 8 7 10 15 Sample Output 0

11(9) 6(5) 15(9) 12(8) 13(10)

Clone this wiki locally