Doubt in floyd's circle

if the distance of the start of the loop from the head is greater than the the length of the loop ,then how will we solve the problem ?

@015itachiuchiha
The algorithm remains same for all cases. You can dry run it for any random testcase. It will always work. If you still think that there is a testcase where it will fail , share it over here with me and I will help you out.