26262nd poster gets a cookie (cookie thread (Part 7)) (Part 9)

@Atlas Is this an '09 Emily post

1 Like

i don’t think she’d know what a linked list is

2 Likes

What if she’d be forced to take informatics lessons

2 Likes

big mood sulit

4 Likes

whop up checking they node.next for null

6 Likes

Goblin :sob:

Really dumb idea, but couldn’t you just:

  • Create three temp variables (we’ll call them current_node, past_node, and future_node).
  • Save the first node to past_node, the second node to current_node, and current_node.next() to future_node.
  • past_node.next() = None
  • While current_node.next() != None:
    • current_node.next() = past_node
    • past_node = current_node
    • current_node = future_node
    • future_node = current_node.next()
  • current_node.next() = past_node
1 Like

called

2 Likes

There’s probably a cleaner way of doing it, but this works.

1 Like

im pretty sure my lecturers would make me just use some kind of horrifying for loop obelisk like a fucked up mutated shell sort

2 Likes

nintendo loop obelisk

3 Likes

youre compsci go away

3 Likes

youve probably actually done this already because you look at the binary and go waowg

4 Likes

I have done this already yeah I go waow based based based based based based based

2 Likes

imagine doing compsci thats some nerd shit

4 Likes

Reminds me of Tutuu tbh

2 Likes

im assuming u mean tutuu is a nerd, in which case i entirely agree

2 Likes

here in software dev we dont know how any of our cocde works and its better

2 Likes

Angy because I’m right uwu

1 Like

TRUE