Skip to content

Ada-C5/list-implementations-cont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practice Together

Refreshers from last assignment

  • Let's take a look at array-list.rb and linked-list.rb. Note that I've included her my solutions and I've also moved the testing stuff out into test-array-list.rb and test-linked-list.rb
  • Let's talk about how delete works in linked-list.rb
  • Let's look at the efficiency of the methods we wrote in linked-list.rb, particularly size

New

  • Look at lotto.rb and talk about interfaces vs implementations

Assignment

  • Modify lotto.rb so that ticket numbers are displayed in ascending order. Do this by adding @ticket.sort to the display_ticket method and add this functionality to both array-list.rb and linked-list.rb
    • Add a method sort to array-list.rb
    • Add a method sort to linked-list.rb
  • Write a method reverse for both array-list.rb and linked-list.rb

About

Further look at list implementations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages