how to take input in floyd cycle detection and removal
Linked list problem
Just take input normally for a linear linked list . Only thing to change is that at which node you want the cycle to be started. just keep a copy of that node.
Node* cycle_node = current_node;
As soon as you give NULL to the last node. Instead of giving NULL .
Last_Node = cycle_node;
And you will be good to go.