modifications required?what is the error in the code?
Circular linked list
u r checking for cycle i ur code but ur input way does not create cycle
if a cycle is presennt in link list then its printing is infinte just once print ur link list u will see the error