2022年9月8日 星期四

814. Binary Tree Pruning

給一個二元樹,若分支下的節點皆為0,則將其分支移除,最後返回同一棵樹。

2022年9月7日 星期三

429. N-ary Tree Level Order Traversal

給一個n-ary的樹,如下圖,將其依節點與根的相對位置,整理為List<List<Integer>>

2022年8月30日 星期二

48. Rotate Image

給一個n*n的矩陣,將其順時針旋轉90度。必須在原有的矩陣上作業,不可新增矩陣。

2022年8月17日 星期三

RBAC架構 Role 與 Menu 的設計規劃 (下)

規劃資料表的串接,以及權限檢核方式

2022年8月14日 星期日

235. Lowest Common Ancestor of a Binary Search Tree

給一個二元搜索樹(BST),找到其中兩個點最近的祖先節點。

2022年8月12日 星期五

19. Remove Nth Node From End of List

給定一串ListNode和整數,ListNode的序號為由大到小,刪除整數所指定的序號節點。

2022年8月9日 星期二

17. Letter Combinations of a Phone Number

給一個電話按鈕如下圖,每個數字都對印若干英文字,傳入數字組digits,回傳所有可能的英文字母組合。