Continued from last assignment
- Let's take a look at
array-list.rb
andlinked-list.rb
. Note that I've included here my solutions - Let's talk about how the linked list methods work in
linked-list.rb
by walking through what happens intest-linked-list.rb
- Let's look at the efficiency of the methods we wrote in
linked-list.rb
, particularlysize
New
- Look at
lotto.rb
and talk about interfaces vs implementations
- Let's modify
lotto.rb
so that ticket numbers are displayed in ascending order. Do this by adding@ticket.sort
to thedisplay_ticket
method and add this functionality to botharray-list.rb
andlinked-list.rb
- Add a method
sort
toarray-list.rb
- Add a method
sort
tolinked-list.rb
- Add a method
- Write a method
reverse
for botharray-list.rb
andlinked-list.rb