原创 Python HackerRank|Word Order(OrderedCounter)(from collections import Counter, OrderedDict)

Dashboard   Python   Collections   Word Order from collections import Counter, OrderedDict class OrderedCounter(C

原创 C語言作業|全排列(升序)

Description 輸入一個整數 n(1 <= n <= 8), 輸出1,2,3...n 的全排列 Input 3 Output 1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1 Hint 輸

原创 Python HackerRank|Time Delta(from datetime import datetime)

Dashboard   Python   Date and Time   Time Delta from datetime import datetime fmt = '%a %d %b %Y %H:%M:%S %z' for

原创 數據結構 鏈表|簡單鏈表

Description 鏈表是使用指針把一系列結點連接起來的數據結構。它由一系列結點(鏈表中每一個元素稱爲結點)組成,結點可以在運行時動態生成。每個結點包括兩個部分:一個是存儲數據元素的數據域,另一個是存儲下一個結點地址的指針域。每個

原创 Python HackerRank|The Minion Game

Dashboard   Python   Strings   The Minion Game def minion_game(string): vowels = 'AEIOU' Stuart = 0 K

原创 Python HackerRank|DefaultDict Tutorial(from collections import defaultdict)

Dashboard   Python   Collections   DefaultDict Tutorial from collections import defaultdict n, m = list(map(int,

原创 Python HackerRank|Collections.deque()(from collections import deque)

Dashboard   Python   Collections   Collections.deque() from collections import deque d = deque() for _ in range(int