To detect the cycle I have made detect cycle and for cycle removal another function…
But looks like there some concept issue here…
cycle is made there and at detection it returns false…
Also removal function after returning head it doesn’t make nay changes to the link list…!!
this is my code :
https://ide.codingblocks.com/#/s/15588