can you please explain the input and output format for the problem
Doubt on input and output format
You have to create a circular linked list.
You can use set or hashmap for this
take input if any input repeats then set size will not increase(as set stores only different values) this is the point where you have to create cycle
you can see the compete code in Reference code if needed
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.