Skip to content

Comparing List interfaces implemented with Array vs Linked Nodes

Notifications You must be signed in to change notification settings

jackiewatanabe/list-implementations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practice Together

Together we will

  • talk about native arrays vs. Ruby arrays (ArrayList in Java)
  • write lib/array_list.rb where we will simulate what happens "under the hood" with Ruby's Array object.
    • together: initialize, add, delete, to_s, include?, size
    • on your own: max
  • Then we will take a look at lib/linked_list.rb and see how the implementation is different (but the interface is the same) and uses nodes instead of a native array to store data.
    • provided: Node class, LinkedList class: initialize, add, delete, to_s
    • together: include?
    • on your own: size, max

About

Comparing List interfaces implemented with Array vs Linked Nodes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%