討論串[閒聊] 每日LeetCode
共 719 篇文章

推噓2(2推 0噓 2→)留言4則,0人參與, 2年前最新作者Rushia (みけねこ的鼻屎)時間2年前 (2023/06/11 21:45), 編輯資訊
0
1
1
內容預覽:
https://leetcode.com/problems/snapshot-array/description/. 1146. Snapshot Array. 設計一個支持快照的陣列,他有以下介面:. SnapshotArray(int length) 初始化陣列大小,預設所有元素為0。. voi
(還有2148個字)

推噓4(4推 0噓 0→)留言4則,0人參與, 2年前最新作者Rushia (みけねこ的鼻屎)時間2年前 (2023/06/11 00:14), 編輯資訊
0
1
1
內容預覽:
https://leetcode.com/problems/maximum-value-at-a-given-index-in-a-bounded-array/description/1802. Maximum Value at a Given Index in a Bounded Array. 給
(還有1716個字)

推噓7(7推 0噓 1→)留言8則,0人參與, 2年前最新作者heterologic (仿生邊緣人)時間2年前 (2023/06/09 09:25), 編輯資訊
0
1
0
內容預覽:
744. Find Smallest Letter Greater Than Target. 又是 easy 的一天 :). 這一題其實和在 sort 過的 array 尋找某個元素差不多. 可以發現,在 sort 過的 array 中存在某個元素. 實際上就等價於第一個大於等於 target 的元
(還有670個字)

推噓2(2推 0噓 3→)留言5則,0人參與, 2年前最新作者Rushia (みけねこ的鼻屎)時間2年前 (2023/06/08 12:46), 編輯資訊
0
2
1
內容預覽:
1.可以從左下開始找,如果左下是正數的話上面的行都不用看了。. Java Code:. --------------------------------------------------------. class Solution {. public int countNegatives(int[
(還有415個字)

推噓3(3推 0噓 1→)留言4則,0人參與, 2年前最新作者Rushia (みけねこ的鼻屎)時間2年前 (2023/06/08 10:52), 編輯資訊
0
1
1
內容預覽:
https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/description/1351. Count Negative Numbers in a Sorted Matrix. 給你一個排序好的 Matrix,找
(還有754個字)