- 目前有 321 題
- code_function.h 是集合目前用到的 Library 的標頭檔
- count.ipynb 用來計算 .cpp 檔的個數
- 0026. Remove Duplicates from Sorted Array (E)
- 0027. Remove Element (E)
- 0028. Find the Index of the First Occurrence in a String (E)
- 0045. Jump Game II (M)
- 0055. Jump Game (M)
- 0058. Length of Last Word (E)
- 0080. Remove Duplicates from Sorted Array II (M)
- 0121. Best Time to Buy and Sell Stock (E)
- 0122. Best Time to Buy and Sell Stock II (M)
- 0169. Majority Element (E)
- 0189. Rotate Array (M)
- 0238. Product of Array Except Self (M)
- 0274. H-Index (M)
- 0380. Insert Delete GetRandom O(1) (M)
- 1287. Element Appearing More Than 25% In Sorted Array (E)
- 1535. Find the Winner of an Array Game (M)
- 1561. Maximum Number of Coins You Can Get (M)
- 1625. Lexicographically Smallest String After Applying Operations (M)
- 1662. Check If Two String Arrays are Equivalent (E)
- 1877. Minimize Maximum Pair Sum in Array (M)
- 1887. Reduction Operations to Make the Array Elements Equal (M)
- 1980. Find Unique Binary String (M)
- 2785. Sort Vowels in a String (M)
- 2862. Maximum Element-Sum of a Complete Subset of Indices (H)
- 2903. Find Indices With Index and Value Difference I (E)
- 2905. Find Indices With Index and Value Difference II
- 2906. Construct Product Matrix (M)
- 2908. Minimum Sum of Mountain Triplets I (E)
- 2909. Minimum Sum of Mountain Triplets II (M)
- 2910. Minimum Number of Groups to Create a Valid Assignment (M)
- 2914. Minimum Number of Changes to Make Binary String Beautiful (M)
- 2923. Find Champion I (E)
- 2924. Find Champion II (M)
- 2956. Find Common Elements Between Two Arrays (E)
- 0056. Merge Intervals (M)
- 0057. Insert Interval (M)
- 0088. Merge Sorted Array (E)
- 0228. Summary Ranges (E)
- 0435. Non-overlapping Intervals (M)
- 0452. Minimum Number of Arrows to Burst Balloons (M)
- 0102. Binary Tree Level Order Traversal (M)
- 0103. Binary Tree Zigzag Level Order Traversal (M)
- 0127. Word Ladder (H)
- 0199. Binary Tree Right Side View (M)
- 0433. Minimum Genetic Mutation (M)
- 0515. Find Largest Value in Each Tree Row (M)
- 0542. 01 Matrix (M)
- 0637. Average of Levels in Binary Tree (E)
- 0785. Is Graph Bipartite? (M)
- 0847. Shortest Path Visiting All Nodes (H)
- 0863. All Nodes Distance K in Binary Tree (M)
- 0864. Shortest Path to Get All Keys (H)
- 1306. Jump Game III (M)
- 1466. Reorder Routes to Make All Paths Lead to the City Zero (M)
- 1926. Nearest Exit from Entrance in Maze (M)
- 0004. Median of Two Sorted Arrays (M)
- 0033. Search in Rotated Sorted Array (M)
- 0034. Find First and Last Position of Element in Sorted Array (M)
- 0035. Search Insert Position (E)
- 0074. Search a 2D Matrix (M)
- 0153. Find Minimum in Rotated Sorted Array (M)
- 0154. Find Minimum in Rotated Sorted Array II (H)
- 0162. Find Peak Element (M)
- 0230. Kth Smallest Element in a BST (M)
- 0501. Find Mode in Binary Search Tree (E)
- 0530. Minimum Absolute Difference in BST (E)
145
- 0100. Same Tree (E)
- 0101. Symmetric Tree (E)
- 0104. Maximum Depth of Binary Tree (E)
- 0105. Construct Binary Tree from Preorder and Inorder Traversal (M)
- 0106. Construct Binary Tree from Inorder and Postorder Traversal (M)
- 0112. Path Sum (M)
- 0114. Flatten Binary Tree to Linked List (M)
- 0116. Populating Next Right Pointers in Each Node (M)
- 0117. Populating Next Right Pointers in Each Node II (M)
- 0124. Binary Tree Maximum Path Sum (H)
- 0129. Sum Root to Leaf Numbers (M)
- 0144. Binary Tree Preorder Traversal (E)
- 0145. Binary Tree Postorder Traversal (E)
- 0222. Count Complete Tree Nodes (M)
- 0226. Invert Binary Tree (E)
- 0235. Lowest Common Ancestor of a Binary Search Tree (M)
- 0236. Lowest Common Ancestor of a Binary Tree (M)
- 0017. Letter Combinations of a Phone Number (M)
- 0022. Generate Parentheses (M)
- 0039. Combination Sum (M)
- 0046. Permutations (M)
- 0052. N-Queens II (H)
- 0077. Combinations (M)
- 0079. Word Search (M)
- 0131. Palindrome Partitioning (M)
- 0200. Number of Islands (M)
- 0417. Pacific Atlantic Water Flow (M)
- 0543. Diameter of Binary Tree (E)
- 0687. Longest Univalue Path (M)
- 0695. Max Area of Island (M)
- 0797. All Paths From Source to Target (M)
- 1020. Number of Enclaves (M)
- 1192. Critical Connections in a Network (H)
- 1254. Number of Closed Islands (M)
- 2049. Count Nodes With the Highest Score (M)
- 2265. Count Nodes Equal to Average of Subtree (M)
- 2322. Minimum Score After Removals on a Tree (H)
- 2925. Maximum Score After Applying Operations on a Tree (M)
- 0042. Trapping Rain Water (H)
- 0070. Climbing Stairs (E)
- 0139. Word Break (M)
- 0198. House Robber (M)
- 0300. Longest Increasing Subsequence (M)
- 0823. Binary Trees With Factors (M)
- 0935. Knight Dialer (M)
- 1220. Count Vowels Permutation (H)
- 1611. Minimum One Bit Operations to Make Integers Zero (H)
- 2147. Number of Ways to Divide a Long Corridor (H)
- 2320. Count Number of Ways to Place Houses (M)
- 2684. Maximum Number of Moves in a Grid (M)
- 2919. Minimum Increment Operations to Make Array Beautiful (M)
- 0005. Longest Palindromic Substring (M)
- 0063. Unique Paths II (M)
- 0064. Minimum Path Sum (M)
- 0072. Edit Distance (M)
- 0097. Interleaving String (M)
- 0120. Triangle (M)
- 0123. Best Time to Buy and Sell Stock III (H)
- 0221. Maximal Square (M)
- 1155. Number of Dice Rolls With Target Sum (M)
- 1335. Minimum Difficulty of a Job Schedule (H)
- 0130. Surrounded Regions (M)
- 0133. Clone Graph (M)
- 0200. Number of Islands (M)
- 0207. Course Schedule (M)
- 0210. Course Schedule II (M)
- 0399. Evaluate Division (M)
- 0841. Keys and Rooms (M)
- 0997. Find the Town Judge (E)
- 1557. Minimum Number of Vertices to Reach All Nodes (M)
- 1615. Maximal Network Rank (M)
- 2791. Count Paths That Can Form a Palindrome in a Tree (H)
- 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance (M)
- 2642. Design Graph With Shortest Path Calculator (H)
- 2976. Minimum Cost to Convert String I(M)
- 2959. Number of Possible Sets of Closing Branches (H)
- 0407. Trapping Rain Water II (H)
- 0743. Network Delay Time (M)
- 0778. Swim in Rising Water (H)
- 2503. Maximum Number of Points From Grid Queries (H)
- 2662. Minimum Cost of a Path With Special Roads (M)
- 2699. Modify Graph Edge Weights (H)
- 0134. Gas Station (M)
- 0135. Candy (H)
- 0561. Array Partition (E)
- 1846. Maximum Element After Decreasing and Rearranging (M)
- 1903. Largest Odd Number in String (E)
- 1921. Eliminate Maximum Number of Monsters (M)
- 1984. Minimum Difference Between Highest and Lowest of K Scores (E)
- 2856. Minimum Array Length After Pair Removals (M)
- 2918. Minimum Equal Sum of Two Arrays After Replacing Zeros (M)
- 0001. Two Sum (E)
- 0012. Integer to Roman (M)
- 0013. Roman to Integer (E)
- 0049. Group Anagrams (M)
- 0128. Longest Consecutive Sequence (M)
- 0166. Fraction to Recurring Decimal (M)
- 0202. Happy Number (E)
- 0205. Isomorphic Strings (E)
- 0219. Contains Duplicate II (E)
- 0242. Valid Anagram (E)
- 0290. Word Pattern (E)
- 0383. Ransom Note (E)
- 0387. First Unique Character in a String (E)
- 0409. Longest Palindrome (E)
- 0447. Number of Boomerangs (M)
- 0498. Diagonal Traverse (M)
- 0532. K-diff Pairs in an Array (M)
- 1160. Find Words That Can Be Formed by Characters (E)
- 1424. Diagonal Traverse II (M)
- 1436. Destination City (E)
- 1737. Change Minimum Characters to Satisfy One of Three Conditions (M)
- 1743. Restore the Array From Adjacent Pairs (M)
- 1897. Redistribute Characters to Make All Strings Equal (E)
- 2857. Count Pairs of Points With Distance k (M)
- 2958. Length of Longest Subarray With at Most K Frequency (M)
- 0525. Contiguous Array (M)
- 0930. Binary Subarrays With Sum (M)
- 1124. Longest Well-Performing Interval (M)
- 1930. Unique Length-3 Palindromic Subsequences (M)
- 0215. Kth Largest Element in an Array (M)
- 0220. Contains Duplicate III (H)
- 0295. Find Median from Data Stream (H)
- 0373. Find K Pairs with Smallest Sums (M)
- 0502. IPO (H)
- 0002. Add Two Numbers (M)
- 0019. Remove Nth Node From End of List (M)
- 0021. Merge Two Sorted Lists (E)
- 0025. Reverse Nodes in k-Group (H)
- 0061. Rotate List (M)
- 0082. Remove Duplicates from Sorted List II (M)
- 0086. Partition List (M)
- 0092. Reverse Linked List II (M)
- 0138. Copy List with Random Pointer (M)
- 0141. Linked List Cycle (E)
- 0146. LRU Cache (M)
- 0817. Linked List Components (M)
- 1171. Remove Zero Sum Consecutive Nodes from Linked List (M)
- 2074. Reverse Nodes in Even Length Groups (M)
- 0050. Pow(x, n) (M)
- 0066. Plus One (E)
- 0069. Sqrt(x) (E)
- 0149. Max Points on a Line (H)
- 0172. Factorial Trailing Zeroes (M)
- 1266. Minimum Time Visiting All Points (E)
- 1503. Last Moment Before All Ants Fall Out of a Plank (M)
- 1688. Count of Matches in Tournament (E)
- 1716. Calculate Money in Leetcode Bank (E)
- 1759. Count Number of Homogenous Substrings (M)
- 2682. Find the Losers of the Circular Game (E)
- 2849. Determine if a Cell Is Reachable at a Given Time (M)
- 2917. Find the K-or of an Array (E)
- 2929. Distribute Candies Among Children II (M)
- 2930. Number of Strings Which Can Be Rearranged to Contain Substring (M)
- 2946. Matrix Similarity After Cyclic Shifts (E)
- 1863. Sum of All Subset XOR Totals (E)
- 2433. Find The Original Array of Prefix Xor (M)
- 2683. Neighboring Bitwise XOR (M)
- 0067. Add Binary (E)
- 0190. Reverse Bits (E)
- 0136. Single Number (E)
- 0191. Number of 1 Bits (E)
- 0201. Bitwise AND of Numbers Range
- 1356. Sort Integers by The Number of 1 Bits (E)
- 2680. Maximum OR (M)
- 0036. Valid Sudoku (M)
- 0048. Rotate Image (M)
- 0054. Spiral Matrix (M)
- 0073. Set Matrix Zeroes (M)
- 0867. Transpose Matrix (E)
- 2482. Difference Between Ones and Zeros in Row and Column (M)
- 0084. Largest Rectangle in Histogram (H)
- 0085. Maximal Rectangle (H)
- 1727. Largest Submatrix With Rearrangements (M)
- 2334. Subarray With Elements Greater Than Varying Threshold (H)
- 0053. Maximum Subarray (M)
- 0363. Max Sum of Rectangle No Larger Than K (H)
- 0848. Shifting Letters (M)
- 1685. Sum of Absolute Differences in a Sorted Array (M)
- 2121. Intervals Between Identical Elements (M)
- 0003. Longest Substring Without Repeating Characters (M)
- 0030. Substring with Concatenation of All Words (H)
- 0076. Minimum Window Substring (H)
- 0209. Minimum Size Subarray Sum (M)
- 0220. Contains Duplicate III (H)
- 2379. Minimum Recolors to Get K Consecutive Black Blocks (E)
- 2904. Shortest and Lexicographically Smallest Beautiful String (M)
- 2957. Remove Adjacent Almost-Equal Characters (M)
- 0020. Valid Parentheses (E)
- 0071. Simplify Path (M)
- 0150. Evaluate Reverse Polish Notation (M)
- 0151. Reverse Words in a String (M)
- 0155. Min Stack (M)
- 0224. Basic Calculator (H)
- 1441. Build an Array With Stack Operations (M)
- 0322. Coin Change (M)
- 416. Partition Equal Subset Sum (M)
- 0518. Coin Change II (M)
- 2218. Maximum Value of K Coins From Piles (H)
- 2915. Length of the Longest Subsequence That Sums to Target (M)
- 0014. Longest Common Prefix (E)
- 0208. Implement Trie (Prefix Tree) (M)
- 0211. Design Add and Search Words Data Structure (M)
- 0212. Word Search II (H)
- 2935. Maximum Strong Pair XOR II (H)
- 0011. Container With Most Water (M)
- 0015. 3Sum (M)
- 0016. 3Sum Closest (M)
- 0018. 4Sum (M)
- 0125. Valid Palindrome (E)
- 0167. Two Sum II - Input Array Is Sorted (M)
- 0392. Is Subsequence (E)
- 0611. Valid Triangle Number (M)
- 0986. Interval List Intersections (M)
- 1793. Maximum Score of a Good Subarray (H)
- 2831. Find the Longest Equal Subarray (M)