Browse Source

docs(highest): correct grammar

1124-swap-args-test
davhojt 2 years ago committed by Dav Hojt
parent
commit
92befee220
  1. 23
      subjects/highest/README.md

23
subjects/highest/README.md

@ -2,19 +2,14 @@
### Instructions ### Instructions
In this exercise a `Numbers` struct will be given. In this exercise, a `Numbers` struct will be given.
These methods have to be written: These methods have to be written for it:
- `new`: create a new instance of `Number`.
- `new` create a new instance of Number. - `List`: which returns an `array` with every number in the struct.
- `List` that returns an `array` with every number in the struct. - `Latest`: which returns an `Option<u32>` with the last added number.
- `Latest` that returns an `Option<u32>` with the last added number. - `Highest`: which returns an `Option<u32>` with the highest number from the list.
- `Highest` that return an `Option<u32>` with the highest number from the list. - `Highest_Three`: which returns a `Vec<u32>` with the three highest numbers.
- `Highest_Three` that returns a `Vec<u32>` with the three highest numbers.
### Notions
- [Trait iterator](https://doc.rust-lang.org/std/iter/trait.Iterator.html)
### Expected functions ### Expected functions
@ -62,3 +57,7 @@ Some(70)
[500, 70, 30] [500, 70, 30]
$ $
``` ```
### Notions
- [Trait iterator](https://doc.rust-lang.org/std/iter/trait.Iterator.html)

Loading…
Cancel
Save