The accepted solutions’ logic gives answer for array 2,3,3 to be 2 when instead it should be 1. {2,3},{3} is not valid as median of {2,3} is 2.

1 Like

Yeah , the TCs are weak … The setter wrote about it on CF . Hence they made it unrated

No, the test cases are not weak, they are incorrect. When I use the correct formula, it gives WA.

Yeah … I meant incorrect TCs … All accepted solutions are wrong

Contest can be kept rated due to weak test cases.

These wrong tcs made it unrated.

1 Like

How can one approach this problem?