Given an array,find no x such that xoring all elements of array gives minimum sum of array
Answers
Answered by
1
Explanation:
Input: arr{}= {3,9,6,2,4}
Output: X=2, Sum= 22
Input: arr{}= {6,56,78,34}
Output: X=2, Sum =170
Similar questions