// 求第i个丑数,就是找前i-2个丑数乘以2,3,5里大于第i-1个丑数的最小值 function GetUglyNumber_Solution(index) { if (index <= 0) { return 0; } let arr = [1]; let i2=0,i3=0,i5=0 let cur = 0; while (arr.length < index) { arr.push(Math.min(arr[i2] * 2, arr[i3] * 3, arr[i5] * 5));//尾部添...