2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
題目:這題要求我們計算二元樹中任意兩個節點之間的最大距離,這段距離被稱為二元樹的「直徑」。直徑的長度是透過兩個節點間的邊數來衡量的,而不一定需要經過樹根。 解題...
既然是第一天那肯定是從我們的第一題開始做起的啦~ 題目 Given an array of integers nums and an integer targ...
Day 26
2024-09-07
763
0
Given an unsorted integer array nums. Return the smallest positive integer that...
Day 30
2024-09-11
763
0
Given the head of a singly linked list and two integers left and right where le...
Day 22
2024-09-03
763
0
今天來記錄一下二分法搜尋吧! 雖然這類型相關的題目在還沒正式認識二分法搜尋之前,"盲寫"也解得出來,不過還是做個記錄吧! Binary S...
Day 15
2024-08-29
763
0
過了一半,該開始挑戰一天寫3題了~ 693. Binary Number with Alternating Bits tags: Easy、Bitwise G...