You are viewing a single comment's thread. Return to all comments →
It is confusing to under stand the sample cases in problem:
Input | Permutation | Sum XOR
1, 2, 3 -> (2, 3, 1) -> 2 + 1 = 3 (Case 0)
1, 2, 3, 4 -> (3, 2, 1, 4) -> 1 + 3 + 5 = 9 (Case 1)
1, 2, 3, 4 -> (2, 3, 1, 4) -> 2 + 1 + 5 = 8 (Why not?)
Did I misunderstand?
Seems like cookies are disabled on this browser, please enable them to open this website
Yet Another Minimax Problem
You are viewing a single comment's thread. Return to all comments →
It is confusing to under stand the sample cases in problem:
Input | Permutation | Sum XOR
1, 2, 3 -> (2, 3, 1) -> 2 + 1 = 3 (Case 0)
1, 2, 3, 4 -> (3, 2, 1, 4) -> 1 + 3 + 5 = 9 (Case 1)
1, 2, 3, 4 -> (2, 3, 1, 4) -> 2 + 1 + 5 = 8 (Why not?)
Did I misunderstand?