β I don't understand what I did wrong(list)
a list is a circle if its last node points at a previous node.
I tried writing a function that can tell whether a given list is a circle, it works except for the last 3 check ups where it loops forever.
I provided pics of my code and the running code.
*ListFromString points the last node of a given list of int at the first one)
*I only had problems with the code inside the for loop
I tried writing a function that can tell whether a given list is a circle, it works except for the last 3 check ups where it loops forever.
I provided pics of my code and the running code.
*ListFromString points the last node of a given list of int at the first one)
*I only had problems with the code inside the for loop

