aloo_lelo
bruteCoder
java
2 years ago
246 B
15
Indexable
class Solution {
static int gameOfXor(int N , int[] A) {
// code here
if(N%2 == 0 )return 0;
int out = 0 ;
for(int i = 0 ;i<N;i+=2) out ^= A[i];
return out;
}
};Editor is loading...
Leave a Comment