From 1268c5cb619fd9617c1741f7fdf3fd9505b38578 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 22 Nov 2022 14:22:09 +0100 Subject: Sove rust lasagna --- rust/lucians-luscious-lasagna/HINTS.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rust/lucians-luscious-lasagna/HINTS.md (limited to 'rust/lucians-luscious-lasagna/HINTS.md') diff --git a/rust/lucians-luscious-lasagna/HINTS.md b/rust/lucians-luscious-lasagna/HINTS.md new file mode 100644 index 0000000..5d1a5ff --- /dev/null +++ b/rust/lucians-luscious-lasagna/HINTS.md @@ -0,0 +1,31 @@ +# Hints + +## General + +- An integer literal can be defined as one or more consecutive digits. + +## 1. Define the expected oven time in minutes + +- You need to define a [function][functions] without any parameters. + +## 2. Calculate the remaining oven time in minutes + +- You need to define a [function][functions] with a single parameter. +- You can use and refer to the previously defined item by its name. +- The last expression in a function is [automatically returned][return-values] from the function; you don't have to explicitly indicate which value to return. +- You can use the [mathematical operator for subtraction][operators] to subtract values. + +## 3. Calculate the preparation time in minutes + +- You need to define a [function][functions] with a single parameter. +- You can use the [mathematical operator for multiplicaton][operators] to multiply values. + +## 4. Calculate the elapsed time in minutes + +- You need to define a [function][functions] with two parameters. +- You can [call][functions] one of the other functions you've defined previously. +- You can use the [mathematical operator for addition][operators] to add values. + +[functions]: https://doc.rust-lang.org/book/ch03-03-how-functions-work.html +[return-values]: https://doc.rust-lang.org/book/ch03-03-how-functions-work.html#functions-with-return-values +[operators]: https://doc.rust-lang.org/book/appendix-02-operators.html \ No newline at end of file -- cgit v1.2.3