help plz

Pages: 123
@kanken
i already gave a small example above see that.
@Dum, alright.
And could you please explain "find the minimum number of values you can xor with" , this statement with respect to the example that you gave earlier.
@Maxii
try this case:

1
8
45 20 4 50 18 45 7 19
6
54

output : 332
@kanken
if you observe the example clearly there is the solution and my whole approach.
@Dum, i think i have got a catch to it but im not sure about it.
Can i pm you my approach and you could confirm if i am on the right track?
and thanks again.
Last edited on
@Dum can u show how the answer is 332?
@kanken
okay pm me.
@Maxii
pm me your code i will send you the case where your code fails.
Hello
Last edited on
@lentmo
i will give you the case where your code fails
you need to check your code
sry its harsh but i should also solve next questions right.
and checking code is difficult
@kanken
yeah your approach is correct.
i did the same.
@despo
see the example above which i gave you will understand it try harder.
@Dum, am i missing any case other than the ones that i mentioned in the pm?
And thanks a ton, mate.
@kanken
see this case too if arr1 is odd.
@Dum, yep i forgot to mention about that case, but im handling that too.
Kudos !
Hello
Last edited on
Hello
Last edited on
If this is a CodeChef challenge, you should know that the CodeChef adjudicators are aware that people are using this forum to cheat, and that they have disqualified people for doing so in the past.
@Dum
can you provide some good testcase when arr1 is odd,please.
Thanks.
@kanken
Can you tell me how the answer is 332 in the above case . As I am getting 328 .
Pages: 123