docs(hashing): correct grammar

This commit is contained in:
davhojt 2022-05-24 17:45:54 +03:00 committed by Dav Hojt
parent b2cb2cbf31
commit 64357157da
1 changed files with 8 additions and 8 deletions

View File

@ -2,19 +2,15 @@
### Instructions ### Instructions
Given a list of integers (Vec<i32>) write three **functions**. Given a list of integers (`Vec<i32>`) write three **functions**.
Write a **function** called `mean` that calculates the `mean` (the average value) of all the values in the list. -`mean`: that calculates the mean (the average value) of all the values in the list.
Write a **function** called `median` that calculates the `median` (for a sorted list, it is the value in the middle). If there is an even amount of numbers in the list, the middle pair must be determined, added together, and divided by two to find the median value. - `median`: that calculates the median (for a sorted list, it is the value in the middle). If there is an even amount of numbers in the list, the middle pair must be determined, added together, and divided by two to find the median value.
Write a **function** called `mode` that calculates the mode (the value - `mode` that calculates the mode (the value
that appears more often). that appears more often).
### Notions
- [hash maps](https://doc.rust-lang.org/book/ch08-03-hash-maps.html)
### Expected Functions ### Expected Functions
```rust ```rust
@ -53,3 +49,7 @@ median 4
mode 5 mode 5
$ $
``` ```
### Notions
- [hash maps](https://doc.rust-lang.org/book/ch08-03-hash-maps.html)