I dont understand

can you please explain by giving some more intution or example
i am understanding how its happening

hello @mohitsingh

have u seen previous videos?

for this problem observe this->
since each rows and colums are sorted in ascending order , the largest value of matrix will be at the bottom right corner, similary all higher values will be found near that corner.
thats the reason we have fixed one corner of the required submatrix at bottom right and then looking for top left corner of required matrix

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.