ARRT - Editorial

Link to your submission and I’ll tell you :slight_smile:

1 Like

Here : CodeChef: Practical coding for everyone

Something weird going on with the forums, sorry.

1
8
15 13 9 5 12 10 2 4
1 7 4 2 16 9 15 5

Got it.Thanks !

1 Like

I have coded the same algorithm. I get partially accept. Can someone please look into what the problem is with my solution?
Solution: 49446953 | CodeChef

Thanks man!!Good Explanation :+1:

@cherry0697 @ssjgz
How do we ensure that the two selected arrays are not exactly the same ?
I do now understand how the answer is necessarily one of the two arrays whose first element is, say, X = min((A[0]+B[i])%n). What if all the elements of the two arrays are same? In that case we need to set the first element of the array as the second minimum X.

Correct me if I am wrong.

what if the next elements are also the same!