const array = new Set(nums) return array.size < nums.length }. Set 可以視為一個values 的收集器,每個值只會出現一次而已,所以特別適合運用在 ...
確定! 回上一頁