Browse Source

docs(hashing): correct grammar

DEV-3198-new-go-exercise-get-digit-len
davhojt 2 years ago committed by Dav Hojt
parent
commit
64357157da
  1. 16
      subjects/hashing/README.md

16
subjects/hashing/README.md

@ -2,19 +2,15 @@
### 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).
### Notions
- [hash maps](https://doc.rust-lang.org/book/ch08-03-hash-maps.html)
### Expected Functions
```rust
@ -53,3 +49,7 @@ median 4
mode 5
$
```
### Notions
- [hash maps](https://doc.rust-lang.org/book/ch08-03-hash-maps.html)

Loading…
Cancel
Save