Tortoise and Hare Algorithm | Floyd Cycle Detection Algorithm | Detailed Explanation | Geekific

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 9

  • @可乐牛排
    @可乐牛排 Місяць тому

    Thanks, buddy, I watched a lot of other videos but was still confused, till I saw your mathematic approach, it is so plain, and so much appreciated: )

  • @adennis200
    @adennis200 7 днів тому

    Now I finally get the reset pointer to start part.
    We can always assume that the list given to us is defined as such, so that we always have x = z i.e. the distance from head to start of cycle is always the same as distance from meet to start of cycle.
    So we dont really need to bother with the mathematics or the physics behind it but just accept that its defined as such and whenever there is a cycle, we just reset, move by one and return the meeting point.

  • @fastasFK03
    @fastasFK03 2 місяці тому

    really helpful video bro, such a nice explanation and easy to understand.

  • @manOfPlanetEarth
    @manOfPlanetEarth Рік тому +2

    Wow!👍🏼 It was again brief but very useful due to the meaning.
    Short but not a joke: new details are delivered.

  • @garimachawla775
    @garimachawla775 11 місяців тому

    really helpful and useful😄😄

  • @manOfPlanetEarth
    @manOfPlanetEarth Рік тому +1

    As for 5:20, you know my thoughts and suggestions🤷‍♂️: bringing stuff (you did: DS) -> technical concepts (on the way (this playlist)) -> practice (problem solving). This is the basis. Basis, basis, basis. Mighty stress on basis. Bedrock is first. 90+% miss it.
    But to whip up a freaking site - they are the first.
    Basis with mild switching to system design, behavioral.
    MAANG and Co do not care about spring, docker, K8s and kafka skills. They care about foundation and do right.

    • @geekific
      @geekific  Рік тому +1

      Thank you! Will definitely take your feedback into consideration :)

  • @unanimous8510
    @unanimous8510 5 місяців тому

    Very nice!

  • @alem4019
    @alem4019 Рік тому

    Great explanation, good job!!!🦾