diff options
author | Andinus <andinus@nand.sh> | 2021-09-08 23:11:02 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-09-08 23:11:02 +0530 |
commit | 9df866b411301652683cfc546fef561a006ea9b1 (patch) | |
tree | 56dc085dcc59f22081a84288916e1d760ad7ccdd /rust/assembly-line/HINTS.md | |
parent | ad9f2bf5df32e800113d0952211535f6798d522d (diff) | |
download | exercism-9df866b411301652683cfc546fef561a006ea9b1.tar.gz |
Rust: Add Assembly Line
Diffstat (limited to 'rust/assembly-line/HINTS.md')
-rw-r--r-- | rust/assembly-line/HINTS.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rust/assembly-line/HINTS.md b/rust/assembly-line/HINTS.md new file mode 100644 index 0000000..800b9f3 --- /dev/null +++ b/rust/assembly-line/HINTS.md @@ -0,0 +1,13 @@ +# Hints + +## General + +## 1. Calculate the production rate per hour + +- Determining the success rate can be done through a [conditional statement](https://doc.rust-lang.org/stable/book/ch03-05-control-flow.html#if-expressions) or with [pattern matching](https://doc.rust-lang.org/stable/book/ch18-01-all-the-places-for-patterns.html#match-arms). +- As Rust only allows multiplication between values of the same type, some [type casting](https://doc.rust-lang.org/rust-by-example/types/cast.html) will have to be done. + +## 2. Calculate the number of working items produced per minute + + +- Just like multiplication, division is only possible between numbers of the same type. By writing a number with a decimal point (e.g. `1.0` instead of `1`) we can write inline constants with a floating point type. \ No newline at end of file |