Codetopia 創城記 (18)|逐站巡覽(Iterator):攤平宇宙的統一「游標」,終結巢狀迴圈地獄!
1) 今日熱點 (故事開場 & 痛點)...
Codetopia 創城記 (25)|城市憲法 I (S/O):一刀劃清權責,一扇敞開未來!
1) 今日熱點 (故事開場 & 痛點) ⚡️
時間:清晨...
今日主題:
程式設計裡有一個規則叫 SDP(穩定依賴原則):最下面的「基礎」一定要很穩定,也要有安全鎖。基礎不穩或沒上鎖,上面再漂亮都會倒。
範例故事:
你在蓋...
Linked List Cycle (LeetCode 141)
thoughts
使用 Floyd’s Cycle Detection (快慢指針):
sl...
Lowest Common Ancestor of a Binary Search Tree
thoughts
BST 性質:左子樹 < root &l...
Reorder List (LeetCode 143)
thoughts
將鏈表重新排序:L0 → Ln → L1 → Ln-1 → …
步驟:
找到中點...