Show newer

@blarkin58 It's for school. That edge case should be covered since I changed "while current != None and current.next.next != None" to "while current != None and current.next != None"

@blarkin58 I don't think that's necessary. I figured it out. It works now.
Thanks for help.

@blarkin58 I don't know the length. (well I do but that would make a shit algorithm)

@blarkin58 I'm supposed to remove every k-th node from the chained list.

@blarkin58 With the current = current.next outside of the if the list is 1 3 4 5 and without it it's 1 5

@ceejbot
The first 2 paragraphs are about women's periods. A subject completely unrelated to the article. Then it's about pet peeves and first world problems and than finally it gets to actual subject of the article.
The Guardian is truly amazing.

Show older
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.