We are giving input in a linear form then it will always show false. How can we take input in cycle form.
How can we give input in cycle form?
hello @priya_Jain
input and output code is already handled .u only have to write code for detection and removal.
here is the logic that we r using to create cyle
we are using hash map to keep track of entered data,if any data i repeated then then we are joining next of previous entered data to node of current data (which is already visited)
but how can we implement it ?
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.