Day 70 of #geekstreak2025

Used Floyd's Algo to find whether loop exists

When loop is found, set slow to head
and increment both fast and slow until they reach a common node
this common node will be the first node of the loop
TC: O(n)
SC: O(1)

#gfg160 @geeksforgeeks
#geekstreak2025 #gfg160