Count the coins: Difference between revisions

→‎128-bit version: Fixed Illegal Implicit Cast
(→‎128-bit version: Fixed Illegal Implicit Cast)
Line 377:
 
Ucent countChanges(in int amount, in int[] coins) pure /*nothrow*/ {
immutable int n = cast(int)coins.length;
 
// points to a cyclic buffer of length coins[i]
Anonymous user