1functionfn (all) {2const arr = [1, 5, 10, 20, 50, 100],3len =arr.length,4res =[];5for(let i = 0; i <= len; i++) {6res[i] =[];7res[i][0] = 1;8}9for(let j = 1; j <= all; j++) {10res[0][j] = 0;11}12for(let i = 1; i <= len; i++) {1...
1functionfn (all) {2const arr = [1, 5, 10, 20, 50, 100],3len =arr.length,4res =[];5for(let i = 0; i <= len; i++) {6res[i] =[];7res[i][0] = 1;8}9for(let j = 1; j <= all; j++) {10res[0][j] = 0;11}12for(let i = 1; i <= len; i++) {1...