You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Augusto 7d88a79aa0 Add the subject and test for the exercise bigger 4 years ago
..
README.md Add the subject and test for the exercise bigger 4 years ago

README.md

bigger

Instructions

Create the function bigger that gets the biggest positive number in the HashMap.

Expected Function

fn bigger(h: HashMap<&str, i32>) -> i32 {
}

Usage

Here is a program to test your function.

use bigger::bigger;
fn main() {
    
    let mut hash = HashMap::new();
    hash.insert("Daniel", 122);
    hash.insert("Ashley", 333);
    hash.insert("Katie", 334);
    hash.insert("Robert", 14);

    println!("The biggest of the elements in the HashMap is {}", bigger(hash));
}

And its output

student@ubuntu:~/[[ROOT]]/test$ cargo run
Is `thought` a permutation of `thougth`? = true
student@ubuntu:~/[[ROOT]]/test$