Cycle detection

Please help me with the floyd’s cycle algorithm

Hello @shreyasdagaHave you seen the editorial video for this?

@shreyasdaga should i give you the code for this?

Here for your reference i am giving you the code:


if you have any doubt you can ask here:
Happy Learning!!