Computer Science, asked by rajeshkumarbhag8447, 1 year ago

Given an array,find no x such that xoring all elements of array gives minimum sum of array

Answers

Answered by sahilkumar8447499110
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