feat: completed solutions
This commit is contained in:
@@ -8,10 +8,12 @@ use std::collections::HashMap;
|
||||
|
||||
fn fruit_basket() -> HashMap<String, u32> {
|
||||
// TODO: Declare the hash map.
|
||||
// let mut basket =
|
||||
let mut basket = HashMap::<String, u32>::new();
|
||||
|
||||
// Two bananas are already given for you :)
|
||||
basket.insert(String::from("banana"), 2);
|
||||
basket.insert(String::from("apple"), 2);
|
||||
basket.insert(String::from("mango"), 2);
|
||||
|
||||
// TODO: Put more fruits in your basket.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user