MediumRelated Topics: Array / Sliding WindowLeetCode Source
解題想法
我們首先遍歷數組來計算1的...
961. N-Repeated Element in Size 2N Array
tags: Easy、Sizeof
You are given an int...
MediumRelated Topics: Array / Matrix / SimulationLeetCode Source
解題想法
首先設定每次尋訪...
嘗試這個禮拜開始每天寫兩題LeetCode~
1290. Convert Binary Number in a Linked List to Integer
t...
前言
嘿嘿~剛好今天下雨,想不想知道大雨過後水都積在哪裡呢?這次我們要來解一道超經典的題目——Trapping Rain Water(接雨水問題)!
這題可...
在Leetcode的題目中,有些題目會要求你不能使用額外的空間、只能原地反轉linked list,這時就會需要用到 In-place reversal of...