7. Loop Detection in Linked List | DS & Algo | Interview Preparation | C++ | Java | Python | Medium

Поділитися
Вставка
  • Опубліковано 11 жов 2024
  • #datastructures #algorithms #coding
    Hi viewers,
    In this video, we have discussed the 3rd classical problem on Linked List.
    Problem Statement: Given a linked list, check whether the list is null-terminated or ends in a cycle.
    Or Given a linked list, check whether there is any loop in the linked list or not.
    We've used the fast and slow pointer approach to solve this problem.
    Java Code: github.com/aak...
    -----------------------------------------------------------
    Python Code: github.com/aak...
    -----------------------------------------------------------
    C/CPP Code: github.com/aak...
    -----------------------------------------------------------
    Join the telegram group where we'll be resolving all your doubts:
    Telegram Link: tinyurl.com/aa...
    Like, Share, and Subscribe to the videos and channel.
    Follow Us On Social Media
    Follow Innoskrit on Instagram:
    / innoskrit
    -----------------------------------------------------------
    Connect with Abhishek on LinkedIn:
    / abhishek-sharma-abhi
    -----------------------------------------------------------
    Connect with Aakash on LinkedIn:
    / aakashverma1124
    -----------------------------------------------------------
    Find Aakash on Instagram:
    / aakashverma1102
    -----------------------------------------------------------
    Our Website:
    innoskrit.in

КОМЕНТАРІ • 19

  • @Innoskrit
    @Innoskrit  4 роки тому +4

    Hi Viewers, at 10:07(mm: ss), we mistakenly have missed one Node while moving slow pointer ahead but it really doesn't matter in this case. There will be a point where the fast and slow pointer will meet definitely. You can try this on your own after understanding how pointers are moving. In case of any query, you can reach us through our telegram group. Link in the description.

  • @parush5381
    @parush5381 4 місяці тому +1

    gazab explaination sir

  • @namratapatil8692
    @namratapatil8692 3 роки тому +1

    Amazing explanation . 🙏🙏

  • @sameekshaoberoi6722
    @sameekshaoberoi6722 4 роки тому +1

    Great explanation sir!!

  • @yashswinimaheswari6052
    @yashswinimaheswari6052 3 роки тому +1

    Amazinggggggggggggggggggggggggggggg series!!!!!

  • @shivakantmishra3706
    @shivakantmishra3706 4 роки тому +1

    amazing explanation thanku sir

  • @bhumikasharma8858
    @bhumikasharma8858 4 роки тому +1

    superb explanation 😊😊

  • @ilatyagi3467
    @ilatyagi3467 4 роки тому +1

    Very well explained sir . 💯💯

  • @RakeshRaj-dq8pv
    @RakeshRaj-dq8pv 4 роки тому +1

    Sir this concept is ultimate.your explanations is just superb you are the best .Thankyou so much sir❤️🤝

  • @anushrutigupta7515
    @anushrutigupta7515 4 роки тому +1

    Sir your this series are working in a best way.. For helping us to build the concepts.. Thank you so much sir..💕

  • @manojgollapelli9856
    @manojgollapelli9856 2 роки тому +1

    sir can we have proof, to show Why slow pointer is moving one step ahead and fast ptr is moving 2 steps ahead in each iteration?

    • @Innoskrit
      @Innoskrit  2 роки тому

      Watch the next video. You will find the reason.

  • @kaushikdwivedi9039
    @kaushikdwivedi9039 4 роки тому +1

    in 48th line of C++ code,what does bool function mean?

    • @Innoskrit
      @Innoskrit  4 роки тому

      bool is a C++ data type which accepts two values true or false.