DEV Community

Cover image for Can you get the loop? — Codewars C++ Solution
YTTMP3
YTTMP3

Posted on

Can you get the loop? — Codewars C++ Solution

It has been my habit for the past 2 years to do daily coding practice on Codewars. The programming language which I prefer is C++. Today when I was doing my daily coding practice, I came through a difficult problem to solve, where I was given a cycle of Linked List Nodes along with a tail node attached to one of the Nodes in Cycle.
What I had to do was to find the length of the cycle discarding the length of the tail. To know more about the problem and how I solved it read.
https://hecodesit.com/can-you-get-the-loop-codewars-c-solution/

Top comments (0)