#Infinite loop while printing circular linked list

1 messages · Page 1 of 1 (latest)

vale oxide
#

Here i have a function that deletes a random node at either the front end or a specific index in a circular linked list, and while printing the list it runs into this infinite loop.

fresh pythonBOT
#

<@&987246399047479336> please have a look, thanks.

fresh pythonBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

vale oxide
#

musical chairs is reference to the last node in circular linked list

#

and the print method was given to me that just loops through musical chairs