summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authorSateesh Basavaraju <sateeshkumarb@yahoo.com>2021-06-04 16:09:12 +0530
committermokou <mokou@fastmail.com>2022-07-14 12:57:47 +0200
commit1e54bc61e81a81b0647325f724690b376de50a2a (patch)
tree370a54687681407c2d1e2384d6c64d72f5bd1808 /info.toml
parentfe54d0f85b3170ba950bab8be9756c9dbf0098fd (diff)
feat: Add hashmap3 exercise.
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml12
1 files changed, 12 insertions, 0 deletions
diff --git a/info.toml b/info.toml
index c54672b..ec2d817 100644
--- a/info.toml
+++ b/info.toml
@@ -506,6 +506,18 @@ Use the `entry()` and `or_insert()` methods of `HashMap` to achieve this.
Learn more at https://doc.rust-lang.org/stable/book/ch08-03-hash-maps.html#only-inserting-a-value-if-the-key-has-no-value
"""
+[[exercises]]
+name = "hashmaps3"
+path = "exercises/hashmaps/hashmaps3.rs"
+mode = "test"
+hint = """
+Hint 1: Use the `entry()` and `or_insert()` methods of `HashMap` to insert entries corresponding to each team in the scores table.
+Learn more at https://doc.rust-lang.org/stable/book/ch08-03-hash-maps.html#only-inserting-a-value-if-the-key-has-no-value
+Hint 2: If there is already an entry for a given key, the value returned by `entry()` can be updated based on the existing value.
+Learn more at https://doc.rust-lang.org/book/ch08-03-hash-maps.html#updating-a-value-based-on-the-old-value
+"""
+
+
# TEST 2
[[exercises]]