Refreshers from last assignment
- Let's take a look at
array-list.rb
andlinked-list.rb
. Note that I've included her my solutions and I've also moved the testing stuff out intotest-array-list.rb
andtest-linked-list.rb
- Let's talk about how
delete
works inlinked-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
- 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