10 个算法提升你的 JavaScript 技能_BYGFJ 1)在数组中查找缺失的数字 Input: [1, 2, 3, 4, 6, 7, 8, 9, 10] Output: 5 const find_missing = function(input) { let n = input.length + 1; let sum = 0; for (let i in input) { sum += input[i]; } return Math.floor((n * (n +... 个算法提升你的 网络 997 02-07