WORMHOLES DOubt

hi,
can anyone please tell me what test cases meant?
Ques. Link-CodeChef: Practical coding for everyone

3 4 2
15 21
5 10
7 25
4 14 25 2
13 21

suppose, if i check for every case, then for 15 and 21, i will take 14 from X and 21 from Y.
2nd- for 5 and 10, i will take 4 from X, and 13 from Y.
3rd- for 7 and 25, i will take 4 from X, and which one should i take from Y?
and suppose there is another one also, suppose for 3 and 25, then? and for 3 and 20?
plz help.

For 7and 25 there will be no suitable value in Y.

Similarly for 3 and 25 we can take 2 for X but there will be no value in Y

For 3 and 20 we can take 2 from X and 21 from Y

no suitable value in Y, that means, we will neglect that case? right?

Yes, right

Thanks, AC in one go!

Awesome!

1 Like