Can someone please explain why we are taking the median element given in the editorial ?? And The Mathematical proof....I can't Understand...
Question — Your text to link here...
Editorial — Your text to link here...
the Editorial say's there's a O(n^2m^2) Soln...
I have a soln which is O(n^2m^2) — Your text to link here... ....but it is giving TLE....