Blind 75
LinkedList Cycle (easy)
Problem Statement
Given the head of a Singly LinkedList, write a function to determine if the LinkedList has a cycle in it or not.
Constraints:
- The number of the nodes in the list is in the range [0, 10<sup>4</sup>].
- 10<sup>5</sup> <= Node.val <= 10<sup>5</sup>
Try it yourself
Try solving this question here:
Python3
Python3