Pattern Analysis
•DFS Tree Traversal
Strategy
•String Strategy
INTEGER
•Leetcode9) Palindrome
Number
• Leetcode50) Power(x,n)
• Leetcode172) Factorial Trailing
Zeros
• Leetcode412) FizzBuzz
STRING
•Leetcode3) Longest Substring without
Repeating Characters
•Leetcode5) Longest Palindromic
Substring
•Leetcode20) Valid Parentheses
•Leetcode 30) Substring with
Concatenation of All Words
•Leetcode 76) Minimum Window
Substring
•Leetcode139) Word Break
•Leetcode151) Reverse Words in a
String
•Leetcode 159) Longest Substring with At
Most Two Distinct Characters
•Leetcode 161) One Edit Distance
•Leetcode187) Repeated DNA Sequences
•Leetcode242) Valid Anagram
•Leetcode 340) Longest Substring with At
Most K Distinct Characters
•Leetcode344) Reverse String
•Leetcode394) Decode String
•Leetcode 424) Longest Repeating
Character Replacement
•Leetcode 647) Palindromic
Substrings
ARRAY
•Leetcode1) Two Sum
•Leetcode 4) Median of Two Sorted
Arrays
•Leetcode 41) First Missing Positive
•Leetcode 49) Group Anagrams
•Leetcode 53) Maximum Subarray
•Leetcode 55) Jump Game
•Leetcode 58) Length of Last word
•Leetcode 66) Plus One
•Leetcode 75) Sort Colors
•Leetcode 80) Remove Duplicates from
Sorted Array II
•Leetcode 88) Merge Sorted Array
•Leetcode 118) Pascal's Triangle
•Leetcode 119) Pascal's Triangle II
•Leetcode 122) Best Time to Buy and Sell
Stock
•Leetcode 134) Gas Station
•Leetcode 152) Maximum Product
Subarray
•Leetcode 169) Majority Element
•Leetcode 189) Rotate Array
•Leetcode 198) House Robber
•Leetcode 213) House Robber II
•Leetcode 238) Product of Array Except
Self
•Leetcode 239) Sliding Window
Maximum
•Leetcode 280) Wiggle Sort
•Leetcode 283) Move Zeroes
•Leetcode 442) Find All Duplicates in an
Array
•Leetcode 448) Find All Numbers
Disappeared in an Array
•Leetcode 532) K-diff Pairs in an
Array
•Leetcode 561) Array Partition I
•Leetcode 713) Subarray Product Less
Than K
•Leetcode 735) Asteroid Collision
•Leetcode 997) Find the Town Judge
•Leetcode 1007) Minimum Domino
Rotations For Equal Row
•Leetcode 1089) Duplicates Zeros
•Leetcode 1291) Sequential Digits
•Leetcode 1306) Jump Game III
•Leetcode 1419) Minimum Number of Frogs
Croaking
•Leetcode 1431) Kids With the Greatest
Number of Candies
•Leetcode 1491) Average Salary
Excluding the Minimum and Maximum Salary
MATRIX
•Leetcode 48) Rotate Image
•Leetcode 54) Spiral Matrix
•Leetcode 56) Merge Intervals
•Leetcode 74) Search a 2D Matrix
•Leetcode 1288) Remove Covered
Intervals
•Leetcode 1572) Matrix Diagonal Sum
SORTING
•Concept) Selcection sort
• Concept) Insertion sort
• Concept) Merge sort
• Concept) Heap sort
• Concept) Quick sort
• Concept) Counting sort
• Concept) Radix sort
•Leetcode 912) Merge Sort
BINARY SEARCH
•Leetcode 11) Container With Most
Water
•Leetcode 33) Search in Rotated Sorted
Array
•Leetcode 34) Find First and Last Position
of Element in Sorted Array
•Leetcode 69) Sqrt(x)
•Leetcode 153) Final Minimum in Rotated
Sorted Array
•Leetcode 154) Find Minimum in Rotated
Sorted Array2
•Leetcode 162) Find Peak Element
•Leetcode 270) Closest Binary Search Tree
Value
•Leetcode 278) First Bad Version
•Leetcode 287) Find the Duplicate
Number
•Leetcode 367) Valid Perfect Square
•Leetcode 374) Guess Number Higher or
Lower
•Leetcode 658) Find K Closest
Elements
•Leetcode 702) Search in a Sorted Array
of Unkown Size
•Leetcode 704) Binary Search
•Leetcode BS 정리
LINKED LIST
•Leetcode 2) Add Two Numbers
•Leetcode 21) Merge Two Sorted
Lists
•Leetcode 24) Swap Nodes in Pairs
•Leetcode 25) Reverse Nodes in
k-Group
•Leetcode 61) Rotate List
•Leetcode 92) Reverse Linked List
II
•Leetcode 114) Flatten Binary Tree to
Linked List
•Leetcode 141) Linked List Cycle
•Leetcode 142) Linked List Cycle
II
•Leetcode 146) LRU Cache
•Leetcode 160) Intersection of Two
Linked Lists
•Leetcode 203) Remove Linked List
Elements
•Leetcode 206) Reverse Linked
List
•Leetcode 234) Palindrome Linked
List
•Leetcode 237) Delete Node in a
Linked List
•Leetcode 328) Odd Even Linked
List
•Leetcode 430) Numbers of
Islands
•Leetcode 445) Add Two Numbers II
•Leetcode 707) Design Linked List
•Leetcode 708) Insert into a
Sorted Circular Linked List
•Leetcode 867) Middle of the Linked
List
•Leetcode 1721) Swapping Nodes
in a Linked List
•LinkedList - how to
Tree Traversal
•Leetcode 94) Inorder Traversal
•Leetcode 100) Same Tree
•Leetcode 102) Binary Tree Level Order
Traversal
•Leetcode 103) Binary Zigzag Level
Order Traversal
•Leetcode 107) Binary Tree Level Order
Traversal II
•Leetcode 112) Path Sum
•Leetcode 113) Path Sum II
•Leetcode 116) Populating Next Right
Pointers in Each Node
•Leetcode 117) Populating Next Right
Pointers in Each Node II
•Leetcode 129) Sum Root to Leaf
Numbers
•Leetcode 144) Binary Tree Preorder
Traversal
•Leetcode 145) Binary Tree Postorder
Traversal
•Leetcode 296) Best Meeting Point
•Leetcode 317) Shortes Distance from All
Buildings
•Leetcode 404) Sum of Left Leaves
•Leetcode 490) The Maze
•Leetcode 994) Rotting Oranges
•Leetcode 1162) As Far from Land as
Possible
Binary Tree
•Leetcode 110) Balanced Binary Tree
•Leetcode 111) Minimum Depth of Binary
Tree
•Leetcode 124) Binary Tree Maximum Path
Sum
•Leetcode 543) Diameter of Binary
Tree
•Leetcode 226) Invert Binary Tree
•Leetcode 236) Lowest Common Ancestor
of a Binary Tree
Binary Search Tree
•Leetcode 98) Validate Binary Search
Tree
•Leetcode 104) Maximum Depth of Binary
Tree
•Leetcode 108) Convert Sorted Array to
Binary Search Tree
•Leetcode 1008) Construct Binary
Search Tree from Preorder Traversal
•Leetcode 701) Insert into a Binary
Search Tree
•Leetcode 938) Range Sum of BST
Graph
•Leetcode 130) Surrounded Regions
•Leetcode 133) Clone Graph
•Leetcode 200) Numbers of Islands
•Leetcode 207) Course Schedule
•Leetcode 323) Number of Connected
Components in an Undirected Graph
•Leetcode 417) Pacific Atlantic Water
Flow
•Leetcode 694) Number of Distinct
Islands
•Leetcode 886) Possible Bipartition
Hash Table
•HashSet, HashMap usage
•Strategy) Consecutive Sequence
Sum
•Leetcode 128) Longest Consecutive
Sequence
•Leetcode 136) Single Number
•Leetcode 217) Contains Duplicate
•Leetcode 219) Contains Duplicate II
•Leetcode 350) Intersection of Two Arrays
II
•Leetcode 359) Logger Rate Limiter
•Leetcode 705) Design HashSet
•Leetcode 706) Design HashMap
•Leetcode 771) Jewels and Stones
•Leetcode 974) Subarray Sums Divisible by
K
TWO POINTER
•Leetcode 15) 3 Sum
•Leetcode 16) 3 Sum Closest
•Leetcode 26) Remove Duplicates from
Sorted Array
•Leetcode 35) Search Insert Position
•Leetcode 82) Remove Duplicates from
Sorted List II
•Leetcode 86) Partition List
•Leetcode125) Valid Palindrome
•Leetcode 209) Minimum Size Subarray
Sum
•Leetcode 325) Maximum Size Subarray Sum
Equals k
•Leetcode 349) Intersection of Two
Arrays
•Leetcode392) Is Subsequence
•Leetcode 560) Subarray Sum Equals K
•Leetcode 977) Squares of a Sorted
Array
Dynamic Programming
•Leetcode 10) Regular Expression
Matching
•Leetcode 44) Wildcard Matching
•Leetcode 45) Jump Game II
•Leetcode 64) Minimum Path Sum
•Leetcode 70) Climbing Stairs
•Leetcode 72) Edit Distance
•Leetcode 279) Perfect Squares
•Leetcode 286) Walls and Gates
•Leetcode 300) Longest Increasing
Subsequence
•Leetcode 322) Coin Change
•Leetcode 337) House Robber III
•Leetcode 376) Wiggle Subsequence
•Leetcode 377) Combination Sum IV
•Leetcode 509) Fibonacci Number
•Leetcode 646) Maximum Length of Pair
Chain
•Leetcode 673) Number of Longest
Increasing Subsequence
•Leetcode 740) Delete and Earn
•Leetcode 746) Min Cost Climbing
Stairs
•Leetcode 1143) Longest Common
Subsequence
Back Tracking
•Leetcode 22) Generate Parentheses
•Leetcode 39) Combination Sum
•Leetcode 78) Subsets
•Leetcode 216) Combination Sum III