Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#β€’3y agoβ€’
10 replies
𝓭𝓾𝓼𝓴𝔂 🐸

βœ… 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
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

βœ… I don't understand GC
C#CC# / help
4y ago
βœ… What did I do wrong? (fixed)
C#CC# / help
2mo ago
❔ I'm very new, still learning, I don't know understand what's wrong with this
C#CC# / help
3y ago