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