LawlietDoHackerrank — Recursive Digit SumWrite code according to the problem definition.Apr 22, 2020Apr 22, 2020
LawlietDoLeetcode — 105. Construct Binary Tree from Preorder and Inorder Traversal題目:給 preorder 跟 inorder 的順序,重建整棵樹。Jun 20, 2018Jun 20, 2018
LawlietDoLeetcode — 162. Find Peak Element題目:在一串數字中,尋找 peak element。peak 定義為: index where array[index-1] < array[index] and array[index+1] < array[index]。Jun 18, 2018Jun 18, 2018
LawlietDoLeetcode — 55. Jump Game題目: 給一個非負數 array,數字代表從這個位置可以走的步數,問可不可以從 index 0 走到最後一格。Jun 13, 2018Jun 13, 2018
LawlietDoLeetcode — 49. Group Anagrams題目:給一堆字串,把相同的 Anagrams 放在一起輸出。可練習 map,string,vector 等 STL 的用法。Jun 11, 2018Jun 11, 2018