Hello anyone can pls help me i was unable to understand what this problem says what that minimum possible after xor? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello anyone can pls help me i was unable to understand what this problem says what that minimum possible after xor?

Given an array of non-negative integers. Choose an integer P and take XOR of P with all elements of array. The task is to choose P such that the maximum value of the array is minimum possible after performing XOR of all elements of the array with P.

6th May 2020, 3:41 PM
Piyush Srivastava
Piyush Srivastava - avatar
0 Answers