js中常見的算法問題

Q1 去掉一組整型數組重複的值html 好比輸入: [1,13,24,11,11,14,1,2] 算法 輸出: [1,13,24,11,14,2]數組 須要去掉重複的11 和 1 這兩個元素。dom /**post * unique an arrayspa **/htm let unique = function(arr) {  blog      let hashTable = {};字符串  
相關文章
相關標籤/搜索