Skip to content

David-L-Jones/Common-Collections-Ex1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Common Collections - Exercise 1

In the book The Rust Programming Language by Steve Klabnik and Carol Nichols, chapter 8 - Common Collections - presents 3 additional exercises. This is my solution to exercise 1:

  • Given a list of integers, use a vector and return the mean (the average value), median (when sorted, the value in the middle position), and mode (the value that occurs the most often; a hash map will be helpful here) of the list.

About

The Rust Programming Language, Chapter 8, Exercise 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages