codewars練習(2)Find the unique number(邏輯問題)

There is an array with some numbers. All numbers are equal except for one. Try to find it! findUniq([ 1, 1, 1, 2, 1, 1 ]) === 2 findUniq([ 0, 0, 0.55, 0, 0 ]) === 0.55 def find_uniq(arr):     # your c
相關文章
相關標籤/搜索