MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / is_odd

Function is_odd

1550-three-consecutive-odds.rs:2–4  ·  view source on GitHub ↗
(num: i32)

Source from the content-addressed store, hash-verified

1pub fn three_consecutive_odds(arr: Vec<i32>) -> bool {
2 pub fn is_odd(num: i32) -> bool {
3 num % 2 != 0
4 }
5 let mut count = 0;
6 for i in 0..arr.len() {
7 if is_odd(arr[i]) {

Callers 1

three_consecutive_oddsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected