How do I take input to create a cycle in the linked list for this problem ?
https://online.codingblocks.com/player/22471/content/10104/4967
Circular linked list input issue
when u get a repeating value u can stop taking input and beak the while loop
or u can do when a repeating value come do not insert in ll and when -1 come loop break automatically
hope this help
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.