|
|
|
@ -445,11 +445,11 @@ UNIX_EPOCH and SystemTime are declared in the std::time module. Add a use statem
|
|
|
|
|
for these two to bring them into scope. You can use nested paths or the glob
|
|
|
|
|
operator to bring these two in using only one line."""
|
|
|
|
|
|
|
|
|
|
# COLLECTIONS
|
|
|
|
|
# HASHMAPS
|
|
|
|
|
|
|
|
|
|
[[exercises]]
|
|
|
|
|
name = "hashmap1"
|
|
|
|
|
path = "exercises/collections/hashmap1.rs"
|
|
|
|
|
name = "hashmaps1"
|
|
|
|
|
path = "exercises/hashmaps/hashmaps1.rs"
|
|
|
|
|
mode = "test"
|
|
|
|
|
hint = """
|
|
|
|
|
Hint 1: Take a look at the return type of the function to figure out
|
|
|
|
@ -459,8 +459,8 @@ Hint 2: Number of fruits should be at least 5. And you have to put
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
[[exercises]]
|
|
|
|
|
name = "hashmap2"
|
|
|
|
|
path = "exercises/collections/hashmap2.rs"
|
|
|
|
|
name = "hashmaps2"
|
|
|
|
|
path = "exercises/hashmaps/hashmaps2.rs"
|
|
|
|
|
mode = "test"
|
|
|
|
|
hint = """
|
|
|
|
|
Use the `entry()` and `or_insert()` methods of `HashMap` to achieve this.
|
|
|
|
|