Max xor array test cases didn 't pass

I DON’T KNOW WHERE I AM STRUKING , MY LOGIC IS TO FIND FIRST: THE XOR OF THE ARRAY AND THEN CHECK FOR THE BRUTE FORCE METHOD WHETHER A ELEMEMNT IS CONTRIBUTING THE MAX XOR BY TAKING ITS XOR WITH THE OVERALL XOR OF THE ARRAY

Any One please Explain how to solve this.
If u (Aman Singh) got the algorithm please share with me…

Mention problem link and name of problem.

problem link-https://online.codingblocks.com/player/13841/content/5047?s=2366
problem Name- MAX XOR ARRAY

Verdict for your code- WRONG ANSWER.
It is said u can remove atmost one element to make XOR larger. Please Think about it.
For input-
6
1
2
3
4
5
6
MyCode Answer-7
YourCode Answer-6.

but my code’s verdict is WRONG ANSWER Too.
MY CODE link-https://ide.geeksforgeeks.org/Q0e1VOz6Ft

Let me check for this test case

Sorry , I pasted wrong link
https://ide.codingblocks.com/s/59483
Can u give me a test case for this code

I had made ‘max’ to ‘maxi’ in your previous code.
Again WRONG ANSWER.

It is already maxi in my code.
I didnt use max in my code

ok.
But then also, the last sent code’s verdict is WRONG ANSWER.

Hey, On leader board anyone got full marks or everyone got 0 marks?

NO correct submissions.Everyone got 0 marks

Brother it means test cases are wrong for this problem. Problem setter should change the problem test cases.

Means i should have left it a long time before.

Yess.
It is a problem from Developer end. Sometimes it is possible that test cases are wrong if everyone is getting 0 marks.

Sorry to know.
Nevertheless a big Thankyou.
I really appreciate your efforts.

1 Like

Please make me understand this problem statement.
Link—https://hack.codingblocks.com/contests/c/126/729

I think they have fixed the test case. Because my solution got accepted.