2095. Delete the Middle Node of a Linked List 2095. Delete the Middle Node of a Linked List # Definition
747. Largest Number At Least Twice of Others 747.Largest Number At Least Twice of Others 這一題是一個簡單的題目,解題的主要邏輯:
1466. Reorder Routes to Make All Paths Lead to the City Zero 1466. Reorder Routes to Make All Paths Lead to the
643. Maximum Average Subarray I 643. Maximum Average Subarray I 題目不難,但是小細節很多,這個題目主要的考點是滑動窗口。 最一開始的想法是每次移動一個 index
1456. Maximum Number of Vowels in a Substring of Given Length 1456. Maximum Number of Vowels in a Substring of Given
2336. Smallest Number in Infinite Set 2336. Smallest Number in Infinite Set 這個題目滿有趣的,側重在邏輯處理的部分,寫 code
1584. Min Cost to Connect All Points 這一題如果不用 UnionFind 的確會有點難做。 class UnionFind: def __init__(self, size): self.