Skip to content

note to self

code more, whine less

  • Developer’s Cheatsheet
  • About

Tag: reverse linked list

Reversing a singly linked list in a single pass

Today I'd like to give codes and solution to reverse a singly linked list in a single pass and not using superfluous storage. Off course there is a solution if you duplicate list, put all values into a vector or array, and other not efficient ways to accomplish this task. Recursive solutions could also be proposed. … Continue reading Reversing a singly linked list in a single pass →

hi development Leave a comment February 9, 2017 2 Minutes
Blog at WordPress.com.
  • Follow Following
    • note to self
    • Already have a WordPress.com account? Log in now.
    • note to self
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar