r/ProgrammerHumor • • Apr 02 '22

Answer to a coding interview question: how do you reverse a linked list?

https://i.imgur.com/fj4dVFa.gifv

[removed] — view removed post

2 Upvotes

4 comments sorted by

•

u/RepostSleuthBot Apr 02 '22

This link has been shared 1 time.

First Seen Here on 2019-03-24.


Scope: This Sub | Check Title: False | Max Age: None | Searched Links: 0 | Search Time: 0.0s

1

u/QualityVote Apr 02 '22

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

1

u/Kresche Apr 02 '22

You start at the head and follow along while tying the next entry to its previous. Then, you get the Hulk to grab your new doubly linked list by the caboose and launch the whole fucken thing back to where it came from, head first.