A very important point to mention here is that mid element may or may not exists the the matrix But since with keep high = mid (even for the case count_smaller == k), we sort of tend to converge to the lowest element in the matrix where count_smaller == k. Hope this helps, if not I will post link to the solution where I have written print stmt to have full clarity
A very important point to mention here is that mid element may or may not exists the the matrix
But since with keep high = mid (even for the case count_smaller == k), we sort of tend to converge to the lowest element in the matrix where count_smaller == k.
Hope this helps, if not I will post link to the solution where I have written print stmt to have full clarity
thanks..!!
We can optimise the count function! Using 2 pointers! You can look into the discussion section
Thanks Bhaiya, Awesome explanation as usual.
Always welcome
The best video for this problem so far
Thanks
very good explanation and technique
Thanks
Loved it !
Thanks