Search a 2D Matrix II | Live Coding with Explanation | Leetcode - 240

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

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

  • @AlgorithmsMadeEasy
    @AlgorithmsMadeEasy  4 года назад +5

    We hope you all are enjoying our videos!!! Don't forget to leave a comment!!! Please like the video to support us!!!
    Questions you might like:
    ✅✅✅[ Tree Data Structure ] : ruclips.net/p/PLJtzaiEpVo2zx-rCqLMmcFEpZw1UpGWls
    ✅✅✅[ Graphs Data Structure ] : ruclips.net/p/PLJtzaiEpVo2xg89cZzZCHqX03a1Vb6w7C
    ✅✅✅[ January Leetcoding Challenge ] : ruclips.net/p/PLJtzaiEpVo2wCalBcRcNjXQ0C6ku3dRkn
    ✅✅✅[ December Leetcoding Challenge ] : ruclips.net/p/PLJtzaiEpVo2xo8OdPZxrpybGR8FmzZpCA
    ✅✅✅[ November Leetcoding Challenge ] : ruclips.net/p/PLJtzaiEpVo2yMYz5RPH6pfB0wNnwWsK7e
    ✅✅✅[ August Leetcoding Challenge ] : ruclips.net/p/PLJtzaiEpVo2xu4h0gYQzvOMboclK_pZMe
    ✅✅✅July Leetcoding challenges: ruclips.net/p/PLJtzaiEpVo2wrUwkvexbC-vbUqVIy7qC-
    ✅✅✅June Leetcoding challenges: ruclips.net/p/PLJtzaiEpVo2xIfpptnCvUtKrUcod2zAKG
    ✅✅✅May Leetcoding challenges: ruclips.net/p/PLJtzaiEpVo2wRmUCq96zsUwOVD6p66K9e
    ✅✅✅Cracking the Coding Interview - Unique String: ruclips.net/p/PLJtzaiEpVo2xXf4LZb3y_BopOnLC1L4mE
    Struggling in a question??
    Leave in a comment and we will make a video!!!🙂🙂🙂

  • @praveennvs
    @praveennvs 2 года назад +3

    I got this in an interview and I bombed. I wish I had seen this video earlier ..Beautifully explained..

  • @tusharvengurlekar3914
    @tusharvengurlekar3914 3 года назад +8

    One of the excellent algorithm series so far. Well explained each example with diagrams. Good job.

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

    Thank you

  • @santanu29
    @santanu29 2 года назад +1

    I needed that first hint then I got the algorithm. Thank you

  • @kshitijvarma2566
    @kshitijvarma2566 Год назад

    thank you maam

  • @JSDev776
    @JSDev776 3 года назад +4

    instead of moving 1 cell at a time can we do some kind of binary search to discard multiple row/collums at once and further optimize this?

  • @AvinashKumar-ps4tw
    @AvinashKumar-ps4tw 2 года назад

    Really good stuff ,

  • @VikashSingh-uf1qr
    @VikashSingh-uf1qr 2 года назад

    Really like this approach and explaination

  • @pranavsharma7361
    @pranavsharma7361 2 года назад

    on point presentation

  • @ajaib1313
    @ajaib1313 3 года назад +2

    SUCH A BEAUTIFUL EXPLANATION, THANK YOU!

  • @JasbirSingh-kp4eu
    @JasbirSingh-kp4eu 4 года назад +1

    Most underrated channel

  • @crisag.2698
    @crisag.2698 4 года назад +2

    Your explanations are amazing! Thank you for making these videos.

  • @auto8ot644
    @auto8ot644 3 года назад

    Best explanation of the search space reduction solution! Thanks for sharing.

  • @samarthshiramshetty2711
    @samarthshiramshetty2711 2 года назад

    Is there any Part 1 video?

  • @gago3001
    @gago3001 2 года назад

    love the diagram

  • @ankurjain8467
    @ankurjain8467 2 года назад

    Just amazing explanation, now words.... and the best thing is visualisation,

  • @i.vigneshdavid1698
    @i.vigneshdavid1698 4 года назад +1

    Thanks for the explanation

  • @sridharg1421
    @sridharg1421 3 года назад +1

    Great explanation. Thanks!

  • @wtfitcntbdiff
    @wtfitcntbdiff 2 года назад

    Very good

  • @amanshutaklikar7435
    @amanshutaklikar7435 3 года назад +1

    well explained !

  • @henriquefernandesfeitosa1155
    @henriquefernandesfeitosa1155 3 года назад +1

    Such a perfect explanation

  • @rahulprasad8125
    @rahulprasad8125 3 года назад +1

    Super! Way to go!!

  • @ashwinvarma9349
    @ashwinvarma9349 4 года назад +1

    Awesome as always!

  • @djlivestreem4039
    @djlivestreem4039 3 года назад

    Amazing

  • @zn4798
    @zn4798 3 года назад +1

    Really really good!

  • @AmazingWorld-fw9oc
    @AmazingWorld-fw9oc 3 года назад +1

    Great work.

  • @realAB459
    @realAB459 3 года назад

    Excellent explanation...Please continue making these kind of videos.

  • @anvesh5377
    @anvesh5377 2 года назад

    At first i applied binary search on each row which has n logm complexity. Now found very optimal method.

  • @Nikita-hv5jm
    @Nikita-hv5jm 3 года назад +1

    bext explanation....keep it up and thanks a lot

  • @karanmandveb-5818
    @karanmandveb-5818 2 года назад

    I think time complexity would be O(n*m) in worst case

  • @zn4798
    @zn4798 3 года назад

    leetcode 74 is same as this question!

    • @praveennvs
      @praveennvs 2 года назад

      no...there, the first element of the row is larger than the lasst element of the previous row..You do not have the constraint here

  • @abheermehrotra329
    @abheermehrotra329 2 года назад

    why is c = matrix[0].length ? why we have written 0 ??

  • @daanishsarguru3044
    @daanishsarguru3044 4 года назад +1

    Awesome

  • @dudadoodedoodedoode
    @dudadoodedoodedoode 4 года назад +1

    Wow

  • @amitupadhyay6511
    @amitupadhyay6511 2 года назад

    Why dont I come with such awsome tricks : (

  • @himanshupal2672
    @himanshupal2672 3 года назад

    You didn't tell why we can't start from (0, 0) and (n - 1, m - 1)????