Skip to main content

coin_change_ways

Function coin_change_ways 

Source
pub fn coin_change_ways(coins: &[usize], amount: usize) -> u64
Expand description

The number of distinct multisets of coins summing to amount (order ignored), saturating at u64::MAX.