Given an integer array nums of length n where all the integers of nums are in t...
題目 2028. Find Missing Observations難度: 中等但異常簡單 題意 有m+n個六面骰子,給定長度m的整數陣列rolls,代表前m個...
題目 1945. Sum of Digits of String After Convert難度: 簡單 題意 給定一字串s與整數k將字串s中的字元按照字母序轉...
題目: 1894. Find the Student that Will Replace the Chalk題意:給定一個整數陣列chalk,以及一個整數k現場...
HardRelated Topics: Graph / Heap (Priority Queue) / Shortest PathLeetCode Sourc...
MediumRelated Topics: Hash Table / Depth-First Search / Union Find / GraphLeetC...
MediumRelated Topics: Array / Depth-First Search / Breadth-First Search / Union...
EasyRelated Topics: Stack / Tree / Depth-First SearchLeetCode Source 解題想法 後序尋訪...
EasyRelated Topics: Stack / Tree / Depth-First Search / Binary TreeLeetCode Sou...
Hard Related Topics: Math / StringLeetCode Source 解題想法 在這個問題中,給定一個代表整數的字串 n,我們...
MediumRelated Topics: Math / String / SimulationLeetCode Source 解題想法 首先我們要定義分子...
You are visiting a farm that has a single row of fruit trees arranged from left...
EasyRelated Topics: Bit ManipulationLeetCode Source 解題想法 十進位數字轉成二進制 之後將1轉成0 將0...
HardRelated Topics: String / Dynamic ProgrammingLeetCode Source 解題想法 這道題目是關於計算...
MediumRelated Topics: Array / Math / Dynamic Programming / Prefix Sum / Game Th...
MediumRelated Topics: Math / Dynamic ProgrammingLeetCode Source 解題想法 題目要求我們找到最...
MediumRelated Topics: Hash Table / Math / Dynamic Programming / Heap (Priority...
MediumRelated Topics: Array / Dynamic ProgrammingLeetCode Source 解題想法 暴力解的話,會使...
MediumRelated Topics: Array / GreedyLeetCode Source 解題想法 題目唯一要注意的點就是 arrays 最大...
EasyRelated Topics: Array / GreedyLeetCode Source 解題想法 題目主要是希望透過 5 10 20 來交易價值...
HardRelated Topics: Array / Two Pointers / Binary Search / SortingLeetCode Sour...
MediumRelated Topics: Array / BacktrackingLeetCode Source 解題想法 首先透過 sort 把 can...
EasyRelated Topics: Tree / Design / BST / Heap (Priority Queue) / BT / Data Str...
HardRelated Topics: Array / DFS / BFS / Matrix / Strongly Connected ComponentLe...
MediumRelated Topics: Array / Hash Table / DFS / BFS / Union Find MatrixLeetCod...
MediumRelated Topics: Array / Hash Table / Math / MatrixLeetCode Source 解題想法 整...
MediumRelated Topics: Array / Matrix / SimulationLeetCode Source 解題想法 首先設定每次尋訪...
HardRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode S...
MediumRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode...
EasyRelated Topics: Array / Hash Table / String / CountingLeetCode Source 解題想法...