iT邦幫忙

leetcode相關文章
共有 1098 則文章
刷題筆記 系列 第 27

技術 [Day27] Find All Duplicates in an Array

Given an integer array nums of length n where all the integers of nums are in t...

技術 [9/5] 今天骰到六

題目 2028. Find Missing Observations難度: 中等但異常簡單 題意 有m+n個六面骰子,給定長度m的整數陣列rolls,代表前m個...

技術 [9/3] 字串換整數

題目 1945. Sum of Digits of String After Convert難度: 簡單 題意 給定一字串s與整數k將字串s中的字元按照字母序轉...

技術 [9/2] 找換粉筆的傢伙

題目: 1894. Find the Student that Will Replace the Chalk題意:給定一個整數陣列chalk,以及一個整數k現場...

8月 LeetCode Daily 見聞錄 系列 第 30

技術 [8/30] 2699. Modify Graph Edge Weights

HardRelated Topics: Graph / Heap (Priority Queue) / Shortest PathLeetCode Sourc...

8月 LeetCode Daily 見聞錄 系列 第 29

技術 [8/29] 947. Most Stones Removed with Same Row or Column

MediumRelated Topics: Hash Table / Depth-First Search / Union Find / GraphLeetC...

8月 LeetCode Daily 見聞錄 系列 第 28

技術 [8/28] 1905. Count Sub Islands

MediumRelated Topics: Array / Depth-First Search / Breadth-First Search / Union...

8月 LeetCode Daily 見聞錄 系列 第 26

技術 [8/26] N-ary Tree Postorder Traversal

EasyRelated Topics: Stack / Tree / Depth-First SearchLeetCode Source 解題想法 後序尋訪...

8月 LeetCode Daily 見聞錄 系列 第 25

技術 [8/25] 145. Binary Tree Postorder Traversal

EasyRelated Topics: Stack / Tree / Depth-First Search / Binary TreeLeetCode Sou...

8月 LeetCode Daily 見聞錄 系列 第 24

技術 [8/24] 564. Find the Closest Palindrome

Hard Related Topics: Math / StringLeetCode Source 解題想法 在這個問題中,給定一個代表整數的字串 n,我們...

8月 LeetCode Daily 見聞錄 系列 第 23

技術 [8/23] 592. Fraction Addition and Subtraction

MediumRelated Topics: Math / String / SimulationLeetCode Source 解題想法 首先我們要定義分子...

刷題筆記 系列 第 10

技術 [Day10] Fruit Into Baskets

You are visiting a farm that has a single row of fruit trees arranged from left...

8月 LeetCode Daily 見聞錄 系列 第 22

技術 [8/22] 476. Number Complement

EasyRelated Topics: Bit ManipulationLeetCode Source 解題想法 十進位數字轉成二進制 之後將1轉成0 將0...

8月 LeetCode Daily 見聞錄 系列 第 21

技術 [8/21] 664. Strange Printer

HardRelated Topics: String / Dynamic ProgrammingLeetCode Source 解題想法 這道題目是關於計算...

8月 LeetCode Daily 見聞錄 系列 第 20

技術 [8/20] 1140. Stone Game II

MediumRelated Topics: Array / Math / Dynamic Programming / Prefix Sum / Game Th...

8月 LeetCode Daily 見聞錄 系列 第 19

技術 [8/19] 650. 2 Keys Keyboard

MediumRelated Topics: Math / Dynamic ProgrammingLeetCode Source 解題想法 題目要求我們找到最...

8月 LeetCode Daily 見聞錄 系列 第 18

技術 [8/18] 264. Ugly Number II

MediumRelated Topics: Hash Table / Math / Dynamic Programming / Heap (Priority...

8月 LeetCode Daily 見聞錄 系列 第 17

技術 [8/17] 1937. Maximum Number of Points with Cost

MediumRelated Topics: Array / Dynamic ProgrammingLeetCode Source 解題想法 暴力解的話,會使...

8月 LeetCode Daily 見聞錄 系列 第 16

技術 [8/16] 624. Maximum Distance in Arrays

MediumRelated Topics: Array / GreedyLeetCode Source 解題想法 題目唯一要注意的點就是 arrays 最大...

8月 LeetCode Daily 見聞錄 系列 第 15

技術 [8/15] 860. Lemonade Change

EasyRelated Topics: Array / GreedyLeetCode Source 解題想法 題目主要是希望透過 5 10 20 來交易價值...

8月 LeetCode Daily 見聞錄 系列 第 14

技術 [8/14] 719. Find K-th Smallest Pair Distance

HardRelated Topics: Array / Two Pointers / Binary Search / SortingLeetCode Sour...

8月 LeetCode Daily 見聞錄 系列 第 13

技術 [8/13] 40. Combination Sum II

MediumRelated Topics: Array / BacktrackingLeetCode Source 解題想法 首先透過 sort 把 can...

8月 LeetCode Daily 見聞錄 系列 第 12

技術 [8/12] 703. Kth Largest Element in a Stream

EasyRelated Topics: Tree / Design / BST / Heap (Priority Queue) / BT / Data Str...

8月 LeetCode Daily 見聞錄 系列 第 11

技術 [8/11] 1568. Minimum Number of Days to Disconnect Island

HardRelated Topics: Array / DFS / BFS / Matrix / Strongly Connected ComponentLe...

8月 LeetCode Daily 見聞錄 系列 第 10

技術 [8/10] 959. Regions Cut By Slashes

MediumRelated Topics: Array / Hash Table / DFS / BFS / Union Find MatrixLeetCod...

技術 [8/9] 840. Magic Squares In Grid

MediumRelated Topics: Array / Hash Table / Math / MatrixLeetCode Source 解題想法 整...

技術 [8/8] 885. Spiral Matrix III

MediumRelated Topics: Array / Matrix / SimulationLeetCode Source 解題想法 首先設定每次尋訪...

技術 [8/7] 273. Integer to English Words

HardRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode S...

技術 [8/6] 3016. Minimum Number of Pushes to Type Word II

MediumRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode...

技術 [8/5] 2053. Kth Distinct String in an Array

EasyRelated Topics: Array / Hash Table / String / CountingLeetCode Source 解題想法...