function findSumNumbers(array, n, sum) { // 枚举所有n个数的组合,判断组合的和等于sum let result = []; const generateAll = function (index, collection, arr) { if (collection.length === n) { const s = collection.reduce((acc, c) => (acc += c), 0); if (s === sum) { resu...