LeetCode 141: Linked List Cycle - Interview Prep Ep 64

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

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

  • @MiddleEasternInAmerica
    @MiddleEasternInAmerica 4 ปีที่แล้ว +11

    thank you so much fisher coder, PLEASE don't stop making videos, at least until I get a job :) :)

    • @MiddleEasternInAmerica
      @MiddleEasternInAmerica 4 ปีที่แล้ว +1

      can't wait to see your explanation for (24. Swap Nodes in Pairs : leetcode.com/problems/swap-nodes-in-pairs/)

  • @pil39
    @pil39 4 ปีที่แล้ว +9

    Thank You for the explanation through each iteration! This is indeed a quality video explanation and gave me a lot of clarity.

    • @FisherCoder
      @FisherCoder  4 ปีที่แล้ว

      Glad it was helpful!

  • @rhuzaifa
    @rhuzaifa ปีที่แล้ว +1

    Nice explaination, Thank you.

  • @seifmamdouh5193
    @seifmamdouh5193 3 ปีที่แล้ว +1

    Great Explanation!

  • @ozas5922
    @ozas5922 ปีที่แล้ว +1

    perfect explanation

  • @inchworm9311
    @inchworm9311 3 ปีที่แล้ว +1

    You are a great teacher.
    Thank you

  • @miadinh6381
    @miadinh6381 2 ปีที่แล้ว +1

    the pictures were very helpful.

  • @henrywang2516
    @henrywang2516 2 ปีที่แล้ว +1

    It's helpful fo me. Thank you for sharing.

    • @FisherCoder
      @FisherCoder  2 ปีที่แล้ว

      Glad it was helpful!

  • @BlazedOutTurtle
    @BlazedOutTurtle 4 ปีที่แล้ว +1

    Bravo ! best explanation on TH-cam

    • @FisherCoder
      @FisherCoder  4 ปีที่แล้ว

      Glad it was helpful!

  • @melanieprevot4926
    @melanieprevot4926 ปีที่แล้ว +1

    Super clear !! Thanks

    • @FisherCoder
      @FisherCoder  ปีที่แล้ว

      Great to hear! Many thanks!

  • @victory4627
    @victory4627 2 ปีที่แล้ว +1

    Very nice and clear explanation!! :D

  • @lilyjoy1338
    @lilyjoy1338 4 ปีที่แล้ว +1

    You are the best teacher in the World...❤️
    Plzz keep posting videos and blessing us with ur knowledge

  • @rishabhrai9472
    @rishabhrai9472 4 ปีที่แล้ว +1

    Absolute clarity man! Thanks for the explanation

  • @nirajpatil1395
    @nirajpatil1395 2 ปีที่แล้ว +1

    thank you for explaining it really helpful

    • @FisherCoder
      @FisherCoder  2 ปีที่แล้ว

      Glad it was helpful!

  • @alexandrunknown1456
    @alexandrunknown1456 4 ปีที่แล้ว +1

    your explanation was a best one !

  • @MANIDEEP08
    @MANIDEEP08 3 ปีที่แล้ว +1

    Superb explanation,
    Thanks!

    • @FisherCoder
      @FisherCoder  3 ปีที่แล้ว +1

      Glad it was helpful!

  • @ehsanhosseini5861
    @ehsanhosseini5861 4 ปีที่แล้ว +1

    As usual great explanation. Love your videos.

  • @alekseiwe
    @alekseiwe 3 ปีที่แล้ว +2

    The best explanation! Thank you dude:)

    • @FisherCoder
      @FisherCoder  3 ปีที่แล้ว +1

      Glad it helped!

    • @alekseiwe
      @alekseiwe 3 ปีที่แล้ว +1

      @@FisherCoder yes, I understand how it works after you explanations👍🏻

  • @bhavyashah1775
    @bhavyashah1775 4 ปีที่แล้ว +1

    Awesome solution!! Easy Explanation.

  • @HariHaran-sl1pg
    @HariHaran-sl1pg 2 ปีที่แล้ว

    You voice is sweet..Keep going my frd..

  • @tenmadoc4622
    @tenmadoc4622 4 ปีที่แล้ว +1

    Really taught well sir Thankyou !!

  • @louischou6780
    @louischou6780 3 ปีที่แล้ว +1

    Why do we need to check fast != null in the while loop condition? Don't we just need to check if the fast.next != null to ensure the fast node has already arrived at the end of the list?

    • @abhinavsharma3819
      @abhinavsharma3819 3 ปีที่แล้ว

      O thanks, u cleared my doubt, I think we need to check both fast.next and fast.next.next because maybe the list is not cyclic and it can give an error

  • @merxgrc9940
    @merxgrc9940 2 ปีที่แล้ว

    thanks dood keep making these good shit

  • @abhinavsharma3819
    @abhinavsharma3819 3 ปีที่แล้ว

    Suppose the fast node is at second last position i.e. n-2 , and next of last node is none instead of a cycle, wouldn't fast.next.next would give error since since there is no next to the none ?

  • @meerimmoldali416
    @meerimmoldali416 3 ปีที่แล้ว +1

    thanks so much

  • @PankajYadav-nz4gn
    @PankajYadav-nz4gn 2 ปีที่แล้ว

    Hey Fisher! Thanks for explaining the code,but I have one doubt and that is what about returning the position of the node where cycle is found. You are not returning the position of the node where the cycle exists.

  • @tushitapatel5782
    @tushitapatel5782 3 ปีที่แล้ว

    how do we know that the slow pointer won't got on another cycle? what is the guarantee that the fast will catch on during slow pointer's first cycle?

  • @aba0101
    @aba0101 3 ปีที่แล้ว

    Hi Steve, your video is greatly helpful! But here in this problem, I'm wondering if we need to check the special circumstance first? Let's say, if(head == null) return false.

  • @Dstoic
    @Dstoic 6 หลายเดือนก่อน +1

    perfect

  • @richmondmensah4408
    @richmondmensah4408 4 ปีที่แล้ว

    Could you also do Linked List Cycle II

  • @jenniferou
    @jenniferou 3 ปีที่แล้ว

    how are computer science people so clever 😱

  • @murike
    @murike 3 ปีที่แล้ว +2

    Ok, but how do you prove matematically that your pointers will meet eventually and not move in infinite loop? Going through one example is not convincing

  • @marcus29428
    @marcus29428 4 ปีที่แล้ว

    可以问下学长在哪里工作嘛

  • @SHASHANKRUSTAGII
    @SHASHANKRUSTAGII 3 ปีที่แล้ว

    Not liking as Number of likes = 123
    That seems a perfect number.