[開放]與[封閉]分別代表不同意思 [開放] - 允許擴充新的功能。[封閉] - 對原本的程式正常的程式應該不需要進行調整。 假設你有三間公司 假設你看準了...
EventEmitter 今天我想用一個 Codewars 的題目來練練上一章的所學,題目及說明在以下程式碼裡: class EventEmitter #...
因為day8、day9比較麻煩所以今天一篇 題目Day 7: Regular Expressions III舉例輸入 102, 1948948 and 1.3...
時間過得很快...一下就到開賽期限了(烤完肉還是要面對現實),所以先開個目錄 : 會先拿 SOLID 原則充門面一下,這樣就有 30 天了! 目錄 Day0...
Given an array nums of n integers, are there elements a, b, c in nums such that...
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands...