List Cycle

Given a linked list, return the node where the cycle begins. If there is no cycle, return null.

Try solving it using constant additional space.

Example :

Input : 

                  ______
                 |     |
                 \/    |
        1 -> 2 -> 3 -> 4

Return the node corresponding to node 3. 
Start solving List Cycle on Interview Code Editor
Sign Up
to access hints and editorial solutions for List Cycle
10597 successful submissions.
Asked In:
  • Amazon
  • Microsoft
  • NetApp
Click here to start solving coding interview questions