2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
Day 21
2024-10-05
991
0
今天來解YKL23(UVA10062):Tell me the frequencies! Tell me the frequencies 這題就是比字串中每個...
Day 30
2024-08-30
988
0
HardRelated Topics: Graph / Heap (Priority Queue) / Shortest PathLeetCode Sourc...
Day 30
2024-10-14
987
0
前言 今天我們要來解一個二元樹的題目,叫做 Symmetric Tree。 這題其實還滿有趣的,因為它要我們檢查一棵樹是不是「對稱的」,也就是說這棵樹的左邊...
回溯法(Backtracking)是一種暴力搜尋法,主要通過逐一嘗試所有可能的解來解決問題,並增加中止條件判斷來提前排除不可行的解,也可說是一種優化版的枚舉法。...
Day 23
2024-08-23
959
0
MediumRelated Topics: Math / String / SimulationLeetCode Source 解題想法 首先我們要定義分子...
應該會暫時刷Linked List相關的LeetCode全部的easy題目,等到刷完再換其他類型,都刷完Easy之後,就該挑戰一下Medium~ 234. Pa...