Longest Increasing Subsequence (LeetCode 300) | Detailed solution with animations and diagrams

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ส.ค. 2024

ความคิดเห็น • 57

  • @vibhutikumar441
    @vibhutikumar441 7 หลายเดือนก่อน +12

    one of the underrated channels you got 1 more subscriber your explanations are very satisfactory

    • @nikoo28
      @nikoo28  7 หลายเดือนก่อน

      Welcome aboard!

  • @ashishchoudhary1664
    @ashishchoudhary1664 3 หลายเดือนก่อน +4

    When I'm not able to understand Neetcode solutions, I come to this channel. It feels like you take time to explain in detail and cover small details and use a lot of test cases. Using multiple test cases helps understand the problem better. I subscribed long back. keep up the good work.

  • @sikkjim4846
    @sikkjim4846 7 หลายเดือนก่อน +1

    I just wanna say thank you so much, you are the best programming instructor on youtube, no doubt!

  • @dianayao1677
    @dianayao1677 7 หลายเดือนก่อน

    Dry run part is the best , you are the only one doing this , I can finally connect the code with the logic. Thank you !!!!

    • @nikoo28
      @nikoo28  6 หลายเดือนก่อน

      so happy you feel that way

  • @a3rdtierguy864
    @a3rdtierguy864 7 หลายเดือนก่อน +2

    what a great approach definitely everybody should watch i donot have words for your explanation just wow

  • @a3rdtierguy864
    @a3rdtierguy864 7 หลายเดือนก่อน +4

    WE WANT more series on dp .

  • @akashskumar6389
    @akashskumar6389 หลายเดือนก่อน

    i usually used to check videos with shortest time, but since I started watching your approaches I ended up looking if your videos are there for the questions on priority

  • @generalknow_ledge
    @generalknow_ledge 7 หลายเดือนก่อน +2

    Amazing brother I understand the problem and the solution too. THANKS TO YOU ❤

    • @nikoo28
      @nikoo28  7 หลายเดือนก่อน

      Most welcome 😊

  • @zeyadalbadawy2245
    @zeyadalbadawy2245 29 วันที่ผ่านมา

    Sir, Really your explaination is super super simple !!!
    I think it is tha most amazing yt channel

  • @abdulrehmanamer4252
    @abdulrehmanamer4252 5 หลายเดือนก่อน

    You have explained it way better.
    An Impressive Guidance to this problem...

  • @enriquegrageda
    @enriquegrageda 6 หลายเดือนก่อน

    I feel like my brain does push ups when i learn from you, thanks bro!

  • @peddibharath7016
    @peddibharath7016 7 หลายเดือนก่อน +3

    Great video. Clearly understood

  • @surabhiagnihotri7561
    @surabhiagnihotri7561 7 หลายเดือนก่อน +1

    loved the explanation, super easy you made it! thankyouuu!

  • @Kripa-bg5tk
    @Kripa-bg5tk 4 หลายเดือนก่อน

    You made the problem seem so easy! Thank you!

  • @sriyanandakuchimanchi4042
    @sriyanandakuchimanchi4042 2 หลายเดือนก่อน

    i was able to figure out this solution myself ,😁😁😁😁,,,just took a little help for code tho...thanks nikhil sir ur teaching is goated

  • @user-xi7lg3em8i
    @user-xi7lg3em8i 5 หลายเดือนก่อน

    Really clear, keep up the good work!

  • @yashpawar2693
    @yashpawar2693 7 หลายเดือนก่อน

    Thanks bro 🔥🔥🙌 found out the best video after lots of searching

    • @nikoo28
      @nikoo28  7 หลายเดือนก่อน

      Your search ends here 😄

  • @chris5000r
    @chris5000r 7 หลายเดือนก่อน

    I find your videos very helpful in preparation for my upcoming interview

    • @nikoo28
      @nikoo28  7 หลายเดือนก่อน +1

      Best of luck!

    • @sandeshsinha9174
      @sandeshsinha9174 7 หลายเดือนก่อน

      How was your interview?

  • @shristisrivastava7054
    @shristisrivastava7054 หลายเดือนก่อน

    Amazing explanation. Thank you for making this video

  • @aman_rockstar31
    @aman_rockstar31 7 หลายเดือนก่อน +1

    best explanation u make dp easy with ur explanation thanku

  • @yashyadav7017
    @yashyadav7017 2 หลายเดือนก่อน

    muah….muah…muah…chummi…chummi…chummi….God bless u bhai…top notch teacher….

  • @yomamasofat413
    @yomamasofat413 2 หลายเดือนก่อน

    great video I like the step by step instructions

  • @frankacquah5416
    @frankacquah5416 7 หลายเดือนก่อน

    Thank you man for this. Nice explanation

  • @a-talks4197
    @a-talks4197 4 หลายเดือนก่อน

    Hats off to you what an amazing explanation :)

    • @nikoo28
      @nikoo28  4 หลายเดือนก่อน

      Thanks a lot 😊

  • @rambhaktuchihaobito7987
    @rambhaktuchihaobito7987 8 หลายเดือนก่อน +1

    wow ...........great explanation :) thank u sir 💟

  • @abhigoku2022
    @abhigoku2022 6 หลายเดือนก่อน

    Hi Sir,
    Eveytime I am searching for a leeetcode problem, I add your name in the suffix hoping you have done a video on it. I have understood each and every video that I have watched. Please do solve all the problems, that will be very helpful for people like me.

  • @kavyakooks5305
    @kavyakooks5305 6 หลายเดือนก่อน

    Great Explanation!!

    • @nikoo28
      @nikoo28  6 หลายเดือนก่อน

      Glad it was helpful!

  • @dsenthilkumar3751
    @dsenthilkumar3751 9 หลายเดือนก่อน +1

    you are really awesome ❤‍🔥 thank you for Eever

    • @nikoo28
      @nikoo28  8 หลายเดือนก่อน

      You rock!

  • @mehedihasannnnn
    @mehedihasannnnn 9 หลายเดือนก่อน

    Sir you are awesome. Thank you for this video ❤❤

    • @nikoo28
      @nikoo28  8 หลายเดือนก่อน

      Most welcome 😊

  • @thirumalainambi6068
    @thirumalainambi6068 7 หลายเดือนก่อน

    tooooo awesome man

  • @debashismahapatra5961
    @debashismahapatra5961 3 หลายเดือนก่อน

    Shouldn't it be "return maxIndex + 1" ? Can you check ?

  • @fjhvfjhv143
    @fjhvfjhv143 9 หลายเดือนก่อน

    Which drawing app you use to write this all on iPad? and btw great explaination and please do not forgot to give answer
    👍

    • @nikoo28
      @nikoo28  8 หลายเดือนก่อน

      that is GoodNotes 6.

  • @user-yd6bw3rz2f
    @user-yd6bw3rz2f 5 หลายเดือนก่อน

    bro please correct it O(n^2) is better than O(2^n) , that brute force is the better approach compared to recursion

  • @rafaelperez7029
    @rafaelperez7029 5 หลายเดือนก่อน

    Sorry, I have a quick question, What do you use to draw your diagramans?

    • @nikoo28
      @nikoo28  5 หลายเดือนก่อน

      That will be GoodNotes 6

  • @prashanthshetty8337
    @prashanthshetty8337 4 หลายเดือนก่อน

    @nikhil Could you please explain how this solution works? I found this on leet code
    func lengthOfLIS(nums []int) int {
    arr := make([]int, 0)
    for _, num := range nums {
    if len(arr) == 0 || arr[len(arr)-1] < num {
    arr = append(arr, num)
    continue
    }
    // binary search arr find minimum element greater or equal with num
    l, r := 0, len(arr) - 1
    for l

    • @nikoo28
      @nikoo28  4 หลายเดือนก่อน

      Have you tried using a debugger?

  • @Usseeer_kaizen
    @Usseeer_kaizen 5 หลายเดือนก่อน +1

    nice

  • @krishnateja3845
    @krishnateja3845 7 หลายเดือนก่อน

    can you tell me why did you avoid using index 2 while backtracking and finding the longest sequence elements 26:00

    • @nikoo28
      @nikoo28  7 หลายเดือนก่อน

      Did you follow the entire logic of the solution explanation or went straight to the code?

    • @devk5061
      @devk5061 6 หลายเดือนก่อน

      ​@@nikoo28you mentioned to backtrack till zero but why u skipped only 2?

  • @cautioni
    @cautioni 5 หลายเดือนก่อน +2

    this solution isn't the most optimised one, atleast according to GFG. it's giving TLE, I really like how you explain, i would request you to make a new video with an accepted solution.

  • @kolawoleabdulrahman
    @kolawoleabdulrahman 9 หลายเดือนก่อน +3

    Nikhil Lohia > Neetcode.

  • @umershabir_
    @umershabir_ 9 หลายเดือนก่อน

    Dear Nikhil I love you so much! from Pakistan, I would love to know about you personally! like what actually you do?

    • @nikoo28
      @nikoo28  8 หลายเดือนก่อน

      A software developer.

  • @bharathkumar8807
    @bharathkumar8807 2 หลายเดือนก่อน

    o