CodeX
Published in

CodeX

Data Structures in Ruby: Doubly Linked List

Last week we looked at Singly Linked Lists in Ruby with examples of how to set up the class structures as well as exploring some common methods. Today, we will continue our discussion of data structures in Ruby with Doubly Linked Lists.

The main difference between Singly Linked Lists and Doubly Linked Lists is the fact that nodes in a Singly Linked List have only one pointer,

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anthony Lepore

Composer, playwright, designer for theater, jazz musician, philosopher, software engineer and technical writer for a FinTech firm in NYC. More: ViolaCello93.com