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.

Image

Try it yourself

Try solving this question here:

Python3
Python3