Together we will
- talk about native arrays vs. Ruby arrays (
ArrayListin Java) - write
lib/array_list.rbwhere 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
- together:
- Then we will take a look at
lib/linked_list.rband see how the implementation is different (but the interface is the same) and uses nodes instead of a native array to store data.- provided:
Nodeclass,LinkedListclass:initialize,add,delete,to_s - together:
include? - on your own:
size,max
- provided: