Kth Smallest element in a matrix | Leetcode

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024

Комментарии • 11

  • @AkashGupta-sh1pd
    @AkashGupta-sh1pd 6 месяцев назад +3

    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

  • @debapriyachandra1767
    @debapriyachandra1767 8 месяцев назад

    We can optimise the count function! Using 2 pointers! You can look into the discussion section

  • @hymnish_you
    @hymnish_you Месяц назад

    Thanks Bhaiya, Awesome explanation as usual.

  • @RishinderRana
    @RishinderRana 6 месяцев назад

    The best video for this problem so far

  • @nandanimadhukar
    @nandanimadhukar 3 месяца назад

    very good explanation and technique

  • @prasadm3614
    @prasadm3614 8 месяцев назад

    Loved it !