educative.io

Solution: Linked List Cycle

Hello, where does the last = 5 value come from for this solution? Thank you!


Course: Grokking Coding Interview Patterns in Python - Learn Interactively
Lesson: Solution: Linked List Cycle - Grokking Coding Interview Patterns in Python

Hello Ellie,
The last variable is used for printing purposes and plays no role in the logic of the code.