fn check_max_one_odd(table: Vec<i32>) -> bool {
    let mut found_odd = false;

    for count in table.iter() {
        if count % 2 == 1 {
            if found_odd {
                return false;
            }
            found_odd = true
        }
    }

    true
}
/// Check that no more than one character has an odd count
Check that no more than one character has an odd count
Check that no more than one character has an odd count
fn check_max_one_odd(table: Vec<i32>) -> bool {
    let mut found_odd = false;
    for count in table.iter() {
        if count % 2 == 1 {
            if found_odd {
                return false;
            }
            found_odd = true
        }
    }
    true
}
fn check_max_one_odd ( table : Vec < i32 > ) -> bool { let mut found_odd = false ; for count in table . iter ( ) { if count % 2 == 1 { if found_odd { return false ; } found_odd = true } } true }
Check that no more than one character has an odd count
Check that no more than one character has an odd count
table
Vec<i32>
table
Vec<i32>