help plz

Pages: 123
Jun 11, 2019 at 8:52am
@kanken
i already gave a small example above see that.
Jun 11, 2019 at 8:54am
@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.
Jun 11, 2019 at 8:55am
@Maxii
try this case:

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

output : 332
Jun 11, 2019 at 8:59am
@kanken
if you observe the example clearly there is the solution and my whole approach.
Jun 11, 2019 at 9:08am
@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 Jun 11, 2019 at 9:15am
Jun 11, 2019 at 9:14am
@Dum can u show how the answer is 332?
Jun 11, 2019 at 9:16am
@kanken
okay pm me.
Jun 11, 2019 at 9:17am
@Maxii
pm me your code i will send you the case where your code fails.
Jun 11, 2019 at 9:26am
Hello
Last edited on Jun 15, 2019 at 10:42am
Jun 11, 2019 at 9:29am
@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
Jun 11, 2019 at 9:32am
@kanken
yeah your approach is correct.
i did the same.
Jun 11, 2019 at 9:33am
@despo
see the example above which i gave you will understand it try harder.
Jun 11, 2019 at 9:34am
@Dum, am i missing any case other than the ones that i mentioned in the pm?
And thanks a ton, mate.
Jun 11, 2019 at 9:37am
@kanken
see this case too if arr1 is odd.
Jun 11, 2019 at 9:45am
@Dum, yep i forgot to mention about that case, but im handling that too.
Kudos !
Jun 11, 2019 at 9:46am
Hello
Last edited on Jun 15, 2019 at 10:42am
Jun 11, 2019 at 10:34am
Hello
Last edited on Jun 15, 2019 at 10:42am
Jun 11, 2019 at 11:08am
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.
Jun 11, 2019 at 6:56pm
@Dum
can you provide some good testcase when arr1 is odd,please.
Thanks.
Jun 11, 2019 at 7:57pm
@kanken
Can you tell me how the answer is 332 in the above case . As I am getting 328 .
Pages: 123