Mastering data structures in Ruby — Singly linked lists
08-Mar-2019 4575
A singly linked list is a data structure that allows us to manage variable-sized collections of elements.Unlike C style arrays, singly linked lists can grow or shrink dynamically based on the number of objects they have to store. This property makes them a nice fit for those cases where the number of elements is unknown beforehand.Each element on the linked list is represented by a node that contains two attributes:.
Mastering data structures in Ruby — Singly linked lists #ruby #rubydeveloper #rubyonrails #Mastering #structures #Ruby — Singly #linked #lists https://rubyonrails.ba/link/mastering-data-structures-in-ruby-singly-linked-lists