Min withdraw

ecma/array/min-withdraw/code/min-withdraw.mjs:

function withdraw(number) {
  // TODO
}

export { withdraw };

ecma/array/min-withdraw/code/min-withdraw.print.mjs:

import { withdraw } from './min-withdraw.mjs';

// Minimum withdraw

// minimum of 1280
console.log(withdraw(1280));
console.log([[100, 12], [50, 1], [20, 1], [10, 1]]);

// minimum of 5705
console.log(withdraw(5705));
console.log([[100, 57], [5, 1]]);

// minimum of 892
console.log(withdraw(892));
console.log([[100, 8], [50, 1], [20, 2], [2, 1]]);

Response