--- tags: Mentocamp3 刷題讀書會 --- # 2024/02/27(二) 每週 21:00 Codewars 刷題 #4 ## 題目 - 主要:[Codewars_6kyu Find the unique number](https://www.codewars.com/kata/585d7d5adb20cf33cb000235/train/python) - 次要:此題有延伸題,等級5kyu,有餘力再進行即可 (3/5題目) > ## 會後Keynote (大家有用到的方法) > ### > - set() 不重複的元素集合 > https://www.runoob.com/python3/python3-set.html > - array.count() 統計元素在陣列內出現的次數 https://www.runoob.com/python/att-list-count.html > - Counter() 導入 Python 的 collections 模組中的 Counter 類別。Counter 是一種特殊的字典,用於計數可雜湊(hashable)對象 https://docs.python.org/zh-tw/3/library/collections.html#collections.Counter > ### Javascript > - Sort() 數值(number)排序 > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort > - Object key-value > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys ## 回報格式 - 請 Fork 此 Replit 連結,進行程式碼解題,完成後將連結貼至「解題分享區」來與大家交流做法。 - Python: https://replit.com/@AnnaChu1/Codewarsfind-the-unique-numer#main.py - JS: https://replit.com/@AnnaChu1/Codewarsfind-the-unique-numberjs#index.js - 一定要Fork到自己帳號底下,否則我印象中程式碼會不見。 (Fork過程有錯誤或不懂的,可以再讓我知道喔!) ![截圖 2024-01-24 晚上8.33.32](https://hackmd.io/_uploads/BysLiq0Fp.png) ![截圖 2024-01-24 晚上8.33.45](https://hackmd.io/_uploads/rypUicRta.png) 解題分享區 --- #### 讀書會議流程: 1. 題目說明 2. 題目解析 4. 成員分享解題思路 5. 問題與討論 #### 回報區 : <No.1> Anna Replit:https://replit.com/@AnnaChu1/Codewarsfind-the-unique-numer#main.py Replit:https://replit.com/@AnnaChu1/Codewarsfind-the-unique-numberjs#index.js <No.2> Alvin Replit:https://replit.com/@yangalvin207/Codewarsfind-the-unique-number20240220#main.py <No.3> 宗承 Replit:https://replit.com/@love970120/Codewarsfind-the-unique-numberjs?v=1 ...請依序貼上