2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
Day 14
2024-08-23
289
0
69. Sqrt(x) 题目描述: 實現 int sqrt(int x) 函數,計算並返回 x 的平方根,其中 x 是非負整數。由於返回類型是整數,結果只保留整...
Day 23
2024-09-06
289
0
145. Binary Tree Postorder Traversal tags: Easy、Tree Given the root of a binary...
Day 12
2024-08-12
289
0
EasyRelated Topics: Tree / Design / BST / Heap (Priority Queue) / BT / Data Str...
題目 2028. Find Missing Observations難度: 中等但異常簡單 題意 有m+n個六面骰子,給定長度m的整數陣列rolls,代表前m個...
Day 17
2024-08-17
285
0
MediumRelated Topics: Array / Dynamic ProgrammingLeetCode Source 解題想法 暴力解的話,會使...
在最初開始刷題時,很多和陣列相關的題目讀完當下第一直覺便是使用雙層迴圈或是把符合條件的資料放進新的空陣列去解題,暴力、直覺、簡單。但隨著題目增加難度,發現有些題...