Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StudyRust/leetcode_rust
/ min_count
Function
min_count
lcp06-na-ying-bi.rs:19–21 ·
view source on GitHub ↗
(coins: Vec<i32>)
Source
from the content-addressed store, hash-verified
17
}
18
19
pub fn min_count(coins: Vec<i32>) -> i32 {
20
coins.into_iter().map(|e|e/2+e%2).sum()
21
}
Callers
1
main
Function · 0.85
Calls
1
sum
Method · 0.80
Tested by
no test coverage detected