LeetCodeを始める前に
LeetCodeの問題分類
同じテーマの問題を続けて解いた方が定着しやすい気がします。
各問題の解答・解説
- 1.Two Sum
- 9. Palindrome Number
- 13. Roman to Integer
- 14. Longest Common Prefix
- 20. Valid Parentheses
- 26. Remove Duplicates from Sorted Array
- 27.Remove Element
- 35. Search Insert Position
- 58. Length of Last Word
- 67. Add Binary
- 70. Climbing Stairs
- 100. Same Tree
- 101. Symmetric Tree
- 108. Convert Sorted Array to Binary Search Tree
- 110. Balanced Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 118. Pascal’s Triangle
- 119. Pascal’s Triangle II
- 136. Single Number
- 141. Linked List Cycle
- 217. Contains Duplicate
- 876. Middle of the Linked List
- 1290. Convert Binary Number in a Linked List to Integer
- 1232. Check If It Is a Straight Line
- 2. Add Two Numbers
- 61. Rotate List
- 82. Remove Duplicates from Sorted List II
- 114. Flatten Binary Tree to Linked List
- 268. Missing Number
- 704. Binary Search
- 3. Longest Substring Without Repeating Characters
- 12. Integer to Roman
- 5. Longest Palindromic Substring
- 6. Zigzag Conversion
- 7. Reverse Integer
- 278. First Bad Version
- 11. Container With Most Water
- 15. 3Sum
- 977. Squares of a Sorted Array
- 283. Move Zeroes
- 167. Two Sum II – Input Array Is Sorted
- 344. Reverse String
- 19. Remove Nth Node From End of List
- 567. Permutation in String
- 733. Flood Fill
- 695. Max Area of Island
- 617. Merge Two Binary Trees
- 77. Combinations
- 46. Permutations
- 74. Search a 2D Matrix
- 153. Find Minimum in Rotated Sorted Array
- 844. Backspace String Compare
- 986. Interval List Intersections
- 200. Number of Islands
- 40. Combination Sum II
- 17. Letter Combinations of a Phone Number
- 55. Jump Game
- 45. Jump Game II
- 62. Unique Paths
- 413. Arithmetic Slices
- 300. Longest Increasing Subsequence
- 2351. First Letter to Appear Twice
- 107. Binary Tree Level Order Traversal II
- 637. Average of Levels in Binary Tree
- 202. Happy Number
- 1523. Count Odd Numbers in an Interval Range
- 1491. Average Salary Excluding the Minimum and Maximum Salary
- 1480. Running Sum of 1d Array
- 724. Find Pivot Index
- 205. Isomorphic Strings
- 191. Number of 1 Bits
- 1281. Subtract the Product and Sum of Digits of an Integer
- 404. Sum of Left Leaves
- 350. Intersection of Two Arrays II
- 121. Best Time to Buy and Sell Stock
- 21. Merge Two Sorted Lists
- 1822. Sign of the Product of an Array
- 1502. Can Make Arithmetic Progression From Sequence
- 589. N-ary Tree Preorder Traversal
- 1588. Sum of All Odd Length Subarrays
- 283. Move Zeroes
- 1672. Richest Customer Wealth
- 1572. Matrix Diagonal Sum
- 206. Reverse Linked List
- 142. Linked List Cycle II
- 102. Binary Tree Level Order Traversal
- 98. Validate Binary Search Tree
- 1768. Merge Strings Alternately
- 509. Fibonacci Number
- 231. Power of Two
- 1046. Last Stone Weight
- 1071. Greatest Common Divisor of Strings
- 1431. Kids With the Greatest Number of Candies
- 151. Reverse Words in a String
- 392. Is Subsequence
- 643. Maximum Average Subarray I
- 1732. Find the Highest Altitude
- 724. Find Pivot Index
- 1207. Unique Number of Occurrences
- 649. Dota2 Senate
- 872. Leaf-Similar Trees
- 1448. Count Good Nodes in Binary Tree
- 700. Search in a Binary Search Tree
- 450. Delete Node in a BST
- 841. Keys and Rooms
- 216. Combination Sum III
- 274. H-Index
- 56. Merge Intervals
- 1791. Find Center of Star Graph
- 122. Best Time to Buy and Sell Stock II
- 55. Jump Game
- 45. Jump Game II
- 134. Gas Station
- 238. Product of Array Except Self