function increaseArray(arr) { const set1 = new Set(); let count = 0; for (let i = 0; i < arr.length; i++) { let w = arr[i]; while (set1.has(w)) { w++; count++; } set1.add(w); } return count } 大佬能指看看第二题这解法有啥问题吗?