Maximum Length of Pair Chain - Leetcode 646 - Python

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 27. 07. 2024
  • Solving Maximum length of pair chain, today's daily leetcode problem. It's similar to the Longest Increasing Subsequence problem, but can be solved more easily with a clever approach.
    🚀 neetcode.io/ - A better way to prepare for Coding Interviews
    đŸ„· Discord: / discord
    🐩 Twitter: / neetcode1
    🐼 Support the channel: / neetcode
    ⭐ BLIND-75 PLAYLIST: ‱ Two Sum - Leetcode 1 -...
    💡 DYNAMIC PROGRAMMING PLAYLIST: ‱ House Robber - Leetco...
    Problem Link: leetcode.com/problems/maximum...
    0:00 - Read the problem
    3:08 - DP Explanation
    5:39 - Greedy Explanation
    11:30 - Coding Greedy solution
    leetcode 646
    #neetcode #leetcode #python

Komentáƙe • 14

  • @MP-ny3ep
    @MP-ny3ep Pƙed 11 měsĂ­ci +1

    Great explanation! Thank you!

  • @ankurgoswami4441
    @ankurgoswami4441 Pƙed 11 měsĂ­ci +3

    it's just a variation of Longest Increasing Subsequence (LIS)

  • @mhdsbk
    @mhdsbk Pƙed 11 měsĂ­ci

    Thanks for the video.. Good one!

  • @kareni7572
    @kareni7572 Pƙed měsĂ­cem

    Thanks for the interval solution. It's probably similar to non - overlapping intervals maybe?

  • @user-xm7hx8tz9o
    @user-xm7hx8tz9o Pƙed 5 měsĂ­ci

    It is a brilliant solution! I understood it after I tried to do it myself

  • @swanv951
    @swanv951 Pƙed 11 měsĂ­ci +1

    I always find it difficult to justify whether a greedy approach is correct or not

  • @yang5843
    @yang5843 Pƙed 11 měsĂ­ci

    Holy shit this is meeting rooms all over again

  • @introspectiveengineer392
    @introspectiveengineer392 Pƙed 11 měsĂ­ci +1

    Mind blowing greedy intuition

    • @shubhamraj25
      @shubhamraj25 Pƙed 11 měsĂ­ci +2

      I don't think it's mind blowing

  • @bird_in_hat6187
    @bird_in_hat6187 Pƙed 11 měsĂ­ci +1

    Thanks! But explanation on 9:00 is too intense, bro.

    • @scykl3
      @scykl3 Pƙed 11 měsĂ­ci

      lmfao

  • @aazzrwadrf
    @aazzrwadrf Pƙed 11 měsĂ­ci

    Didn't find channel this until recently. I missed a lot of vids..

  • @reggiehurley1479
    @reggiehurley1479 Pƙed 11 měsĂ­ci +1

    why is the solution so f-ing easy but impossible to figure out???