• Sorting Algorithms (9)
    1. Bubble Sort
    2. Counting Sort
    3. Dutch National Flag
    4. Heap Sort
    5. Insertion Sort
    6. Merge Sort
    7. Quick Sort
    8. Radix Sort
    9. Selection Sort
  • Bit Manipulation Based Problems (20)
    1. Bitwise And Of Numbers Range
    2. Counting Bits
    3. Divide Integers
    4. Find The Difference
    5. Flip And Invert Image
    6. Gray Code
    7. Hamming Distance
    8. Maximum Product Of Word Lengths
    9. Maximum Xor Of Two Numbers
    10. Minimum Flips To Make A Or B Equal C
    11. Missing Number
    12. Number Of 1 Bits
    13. Power Of Two
    14. Reverse Bits
    15. Single Number
    16. Single Number II
    17. Single Number III
    18. Sum Of Two Integers
    19. Total Hamming Distance
    20. Xor Queries Of Subarray
  • Backtracking Based Problems (20)
    1. All Paths Source Target
    2. Beautiful Arrangement
    3. Combination Sum
    4. Combination Sum II
    5. Combination Sum III
    6. Fair Distribution Of Cookies
    7. Generate Parentheses
    8. Gray Code
    9. Letter Case Permutation
    10. Letter Combinations Of Phone Number
    11. N Queens
    12. N Queens II
    13. Palindrome Partitioning II
    14. Permutations
    15. Permutations II
    16. Restore IP Addresses
    17. Subsets
    18. Subsets II
    19. Sudoku Solver
    20. Word Search
  • Binary Search Based Problems (26)
    1. Allocate Books
    2. Arranging Coins
    3. Binary Search
    4. Capacity To Ship Package In Ddays
    5. Find First And Last Position In Sorted Array
    6. Find Kth Smallest Pair Distance
    7. Find Minimum In Rotated Sorted Array
    8. Find Minimum In Rotated Sorted Array II
    9. Find Peak Element
    10. Find Right Interval
    11. Guess Number Higher Lower
    12. H Index II
    13. Koko Eating Bananas
    14. Kth Smallest In Sorted Matrix
    15. Median Of Two Sorted Arrays
    16. Minimum Number Of Days To Make M Bouquets
    17. Minimum Speed To Arrive On Time
    18. Search A 2 D Matrix
    19. Search In Rotated Sorted Array
    20. Search In Rotated Sorted Array II
    21. Search Insert Position
    22. Single Element In Sorted Array
    23. Smallest Divisor Given A Threshold
    24. Sqrt
    25. Time Based Key Value Store Bs
    26. Valid Perfect Square
  • Two Pointers Based Problems (22)
    1. Backspace String Compare
    2. Container With Most Water
    3. Count Pairs Whose Sum Less Than Target
    4. Dutch National Flag
    5. Find The Duplicate Number
    6. Long Pressed Name
    7. Max Consecutive Ones
    8. Merge Strings
    9. Minimum Length Of String
    10. Move Zeroes TP
    11. Remove Duplicates Sorted Array
    12. Reverse String TP
    13. Reverse Vowels Of String
    14. Reverse Words In String
    15. Reverse Words In String III
    16. Sort Array By Parity
    17. Squares Of Sorted Array TP
    18. Three Sum
    19. Trapping Rain Water
    20. Two Pointers Intro
    21. Two Sum Sorted
    22. Valid Palindrome TP
  • Sliding Window Based Problems (30)
    1. Best Time To Buy And Sell Stock
    2. Contains Duplicates II
    3. Count Distinct Integers After Reverse Operations
    4. Find K Closest Elements
    5. Frequency Of The Most Frequent Element
    6. Fruits Into Basket
    7. Longest Repeating Character Replacement
    8. Longest Sub String With K Distinct Chracters
    9. Longest Sub String With K Unique Characters
    10. Longest Subarray Of 1 s After Deleting One Element
    11. Longest Substring With Atleast K Repeating Chars
    12. Longest Substring Without Repeating Characters
    13. Max Consecutive Ones III
    14. Maximum Average Subarray I
    15. Maximum Erasure Value
    16. Maximum Number Of Vowels In Substring Of Given Length
    17. Maximum Sum Of Subarrays With Equal Sums
    18. Min Operations To Reduce X To Zero
    19. Minimum Consecutive Cards To Pick Up
    20. Minimum Number Of Flips To Make The Binary String Alternate
    21. Minimum Size Sub Array Sum
    22. Minimum Window Substring
    23. Minimum Window Substring II
    24. Number Of Sub Arrays Of Size K And Avg Greater Than Or Equal To Threshold
    25. Number Of Substrings Containing All Three Characters
    26. Number Of Ways To Form Target String
    27. Permutation In String
    28. Sliding Window
    29. Sliding Window Maximum
    30. Substrings Of Size Three With Distinct Characters
  • Strings & Hashing Based Problems (47)
    1. Basic Calculator II
    2. Break A String Into Maximum Unique Substrings
    3. Check If A String Contains All Binary Codes Of Size K
    4. Count And Say
    5. Count Binary Substrings
    6. Count Substrings That Differ By One Character
    7. Decode String
    8. Encode And Decode Strings
    9. Encode Decode Tiny URL
    10. Find All Anagrams In A String
    11. Find And Replace In String
    12. Find The Index Of The First Occurrence In A String
    13. Group Anagrams
    14. Integer To Roman
    15. Is String Has Unique Characters
    16. Is Subsequence
    17. Isomorphic Strings
    18. KMP String Matching
    19. Length Of Largest Sub String
    20. Length Of Last Word
    21. Longest Common Prefix
    22. Longest Palindrome Subsequence
    23. Manachers Algorithm
    24. Maximum Difference Between Node And Ancestor
    25. Maximum Number Of Balloons
    26. Maximum Product Of The Length Of Two Palindromic Subsequences
    27. Merge Strings Alternately
    28. Minimum Number Of Swaps To Make The String Balanced
    29. Minimum Window Substring II
    30. Number Of Substrings Containing All Three Characters
    31. Optimal Partition Of String
    32. Repeat String
    33. Repeated DNA Sequences
    34. Reverse String
    35. Reverse Words In String
    36. Reverse Words In String III
    37. Roman To Integer
    38. Rotate String
    39. Scramble String
    40. Shortest Palindrome
    41. Sort Vowels In String
    42. Unique Length 3 Palindromic Subsequences
    43. Valid Anagram
    44. Valid Palindrome
    45. Valid Palindrome II
    46. Word Pattern
    47. Z Function
  • Arrays & Hashing Based Problems (90)
    1. 3 Sum
    2. 4 Sum
    3. Array With Elements Not Equal To Average Of Neighbors
    4. Best Time To Buy And Sell Stock II
    5. Boats To Save People
    6. Brick Wall
    7. Can Place Flowers
    8. Candy Distribution
    9. Concatenation Of Array
    10. Container With Most Water
    11. Contains Duplicates
    12. Continuous Subarray Sum
    13. Count Number Of Texts
    14. Count Subarrays With K Different Integers
    15. Design Hash Map
    16. Design Hash Set
    17. Design Parking System
    18. Design Underground System
    19. Dota 2 Senate
    20. Find Kth Largest
    21. Find Missing Numbers From Array
    22. Find Pivot Index
    23. Find The Difference Of Two Arrays
    24. First Missing Positive
    25. Four Sum II
    26. Gas Station
    27. Grid Game
    28. Insert Delete Get Random
    29. Jump Game
    30. Jump Game II
    31. K Frequent Elements
    32. Kth Missing Positive Number
    33. Largest Number
    34. Largest Rectangle Matrix
    35. Longest Consecutive Sequence
    36. Majority Element
    37. Make Array Strictly Increasing
    38. Max Chunks To Make Sorted
    39. Max Consecutive Ones III
    40. Maximum Number Of Coins You Can Get
    41. Maximum Number Of Tasks You Can Assign
    42. Maximum Profit In Job Scheduling
    43. Maximum Sum Circular Subarray
    44. Maximum Sum Of 3 Non Overlapping Subarrays
    45. Maximum Sum Subarray
    46. Maximum Width Ramp
    47. Median Of Two Sorted Arrays Of Diff Size
    48. Median Of Two Sorted Arrays Of Same Size
    49. Merge Sorted Array
    50. Mimimum Operations To Make Array Continuous
    51. Minimum Diff Between Highest And Lowest Of K Scores
    52. Minimum Jumps To Reach Home
    53. Minimum Penalty For A Shop
    54. Minimum Size Subarray Sum
    55. Move Zeroes
    56. Naming A Company
    57. Next Greater Element 1
    58. Non Decreasing Array
    59. Number Of Pairs Of Interchangeable Rectangles
    60. Number Of Subsequences That Satisfy Target Sum Condition
    61. Number Of Ways To Split Array
    62. Number Of Zero Filled Subarrays
    63. Pascals Triangle
    64. Product Of Array Except Self
    65. Push Dominoes
    66. Range Sum Query 2 D Immutable
    67. Range Sum Query Immutable
    68. Remove Duplicates From Sorted Array
    69. Remove Duplicates From Sorted Array II
    70. Remove Element
    71. Replace Elements With Greatest From Right
    72. Replacing Ones With K
    73. Rotate Array
    74. Set Matrix Zeroes
    75. Shortest Subarray With Sum At Least K
    76. Sign Of An Array
    77. Sort Colors
    78. Spiral Order Matrix
    79. Squares Of Sorted Array
    80. Stock Span
    81. Subarray Sum Equals K
    82. Sum Of Subarray Minimums
    83. Text Justification
    84. Transpose Matrix
    85. Trapping Rain Water
    86. Two Sum
    87. Two Sum II
    88. Unique Email Addresses
    89. Validate Sudoku
    90. Wiggle Sort
  • Stack Based Problems (26)
    1. 132 Pattern
    2. Asteroid Collision
    3. Baseball Game
    4. Car Fleet
    5. Daily Temperatures
    6. Decode String
    7. Exclusive Time Of Functions
    8. Largest Rectangle In Histogram
    9. Max Stack
    10. Maximum Frequency Stack
    11. Min Add To Make Parentheses Valid
    12. Min Remove To Make Valid Parentheses
    13. Min Stack
    14. Monotonic Stack Intro
    15. Next Greater Element II
    16. Online Stock Span
    17. Remove All Adjacent Duplicates In String II
    18. Remove K Digits
    19. Removing Stars From String
    20. Reverse Polish Notation
    21. Simplify Path
    22. Stack Using Queue
    23. Sum Of Subarray Minimums
    24. Trapping Rain Water Using Stack
    25. Valid Parentheses
    26. Validate Stack Sequences
  • Heap / Priority Queue Based Problems (21)
    1. Course Schedule III
    2. Farthest Building You Can Reach Heap
    3. Find Kth Largest In Stream
    4. Find Median From Data Stream
    5. Heap Intro
    6. IPO
    7. Kth Largest Element
    8. Kth Largest In Stream
    9. Maximum Subsequence Score
    10. Meeting Rooms II Heap
    11. Merge K Sorted Lists
    12. Minimum Cost To Connect Points
    13. Minimum Cost To Connect Sticks
    14. Minimum Cost To Hire K Workers
    15. Reorganize String Heap
    16. Sliding Window Median
    17. Smallest Number In Infinite Set
    18. Smallest Range From K Lists
    19. Sort Characters By Frequency
    20. Task Scheduler Heap
    21. Top K Frequent Elements
  • Trees Based Problems (34)
    1. All Nodes Distance K In Binary Tree
    2. Average Of Levels
    3. Balanced Binary Tree
    4. Binary Tree Maximum Path Sum
    5. Binary Tree Paths
    6. Binary Tree Right Side View
    7. Construct Binary Tree From Inorder Postorder
    8. Construct Binary Tree From Preorder Inorder
    9. Count Good Nodes In Binary Tree
    10. Delete Node In BST
    11. Diameter Of Binary Tree
    12. Flatten Binary Tree To Linked List
    13. Insert Into BST
    14. Invert Binary Tree
    15. Kth Smallest Element In BST
    16. Level Order Traversal
    17. Lowest Common Ancestor
    18. Lowest Common Ancestor BST
    19. Max Depth Binary Tree
    20. Maximum Difference Between Node And Ancestor
    21. Maximum Width Of Binary Tree
    22. Path Sum
    23. Path Sum II
    24. Path Sum III
    25. Populating Next Right Pointers
    26. Recover BST
    27. Same Tree
    28. Serialize Deserialize Binary Tree
    29. Sum Of Left Leaves
    30. Symmetric Tree
    31. Trees Intro
    32. Validate BST
    33. Vertical Order Traversal Of Binary Tree
    34. Zigzag Level Order Traversal
  • Dynamic Programming Based Problems (41)
    1. Best Time Buy Sell Stock III
    2. Best Time Buy Sell Stock IV
    3. Best Time Buy Sell Stock With Cooldown
    4. Best Time Buy Sell Stock With Transaction Fee
    5. Climbing Stairs
    6. Coin Change
    7. Decode Ways
    8. Delete And Earn
    9. Distinct Subsequences
    10. Dungeon Game
    11. Edit Distance
    12. House Robber
    13. House Robber 2
    14. Interleaving String
    15. Intro
    16. Jump Game
    17. Jump Game II
    18. Largest Divisible Subset
    19. Longest Common Subsequence
    20. Longest Increasing Subsequence
    21. Longest Palindrome String
    22. Max Product Sub Array
    23. Maximal Square
    24. Min Cost Climbing Stairs
    25. Minimum Falling Path Sum
    26. Minimum Path Sum
    27. Nth Tribonacci Number
    28. Number Of Longest Increasing Subsequences
    29. Palindromic Substrings
    30. Partition Equal Subset
    31. Perfect Squares
    32. Regular Expression Matching
    33. Robot Unique Paths Obstacles
    34. Scramble String
    35. Target Sum
    36. Triangle Min Path Sum
    37. Unique Paths
    38. Unique Paths II
    39. Video Stitching
    40. Wildcard Matching
    41. Word Break
  • Intervals Based Problems (17)
    1. Car Pooling
    2. Data Stream As Disjoint Intervals
    3. Employee Free Time
    4. Insert Interval
    5. Interval List Intersections
    6. Meeting Rooms
    7. Meeting Rooms II
    8. Merge Intervals
    9. Minimum Arrows To Burst Balloons
    10. Minimum Number Of Days To Make M Bouquets
    11. My Calendar I
    12. Non Overlapping Intervals
    13. Remove Covered Intervals
    14. Sliding Window Median
    15. Smallest Range From K Lists
    16. Split Array Into Consecutive Subsequences
    17. Video Stitching
  • Graph Based Problems (39)
    1. Alien Dictionary
    2. All Ancestors Of Node In DAG
    3. BFS
    4. Cheapest Flights Within K Stops
    5. Clone Graph
    6. Course Schedule
    7. Critical Connections In Network
    8. DFS
    9. Dijkstra
    10. Find Eventual Safe States
    11. Graph Intro
    12. Graph Valid Tree
    13. Keys And Rooms
    14. Kruskal
    15. Longest Path With Different Adjacent Characters
    16. Making A Large Island
    17. Max Area Of Island
    18. Minesweeper
    19. Minimum Cost To Connect Points
    20. Minimum Height Trees
    21. Network Delay Time
    22. Number Of Closed Islands
    23. Number Of Connected Components
    24. Number Of Enclaves
    25. Number Of Islands
    26. Number Of Operations To Make Network Connected
    27. Pacific Atlantic Water Flow
    28. Parallel Courses
    29. Prim
    30. Reconstruct Itinerary
    31. Rotting Oranges
    32. Satisfiability Of Equality Equations
    33. Shortest Path BFS
    34. Shortest Path In Binary Matrix
    35. Surrounded Regions
    36. Topological Sort
    37. Walls And Gates
    38. Word Ladder
    39. Word Ladder II
  • Union Find Based Problems (15)
    1. Accounts Merge
    2. Graph Valid Tree
    3. Largest Component Size By Common Factor
    4. Making A Large Island
    5. Minimum Cost To Connect Points
    6. Minimum Spanning Tree Kruskal
    7. Number Of Connected Components
    8. Number Of Operations To Make Network Connected
    9. Number Of Operations To Make Network Connected 2
    10. Number Of Provinces
    11. Redundant Connection
    12. Regions Cut By Slashes
    13. Satisfiability Of Equality Equations
    14. Smallest String With Swaps
    15. Surrounded Regions
  • Trie Based Problems (12)
    1. Count Distinct Substrings
    2. Design Add Search Words Data Structure
    3. Implement Magic Dictionary
    4. Implement Trie
    5. Longest Word In Dictionary
    6. Map Sum Pairs
    7. Maximum Xor Of Two Numbers
    8. Palindrome Pairs
    9. Replace Words
    10. Search Suggestions System
    11. Stream Of Characters
    12. Word Break II
  • Math Based Problems (20)
    1. Add Strings
    2. Bulb Switcher
    3. Count Primes
    4. Divide Two Integers
    5. Excel Sheet Column Number
    6. Excel Sheet Column Title
    7. Fizz Buzz
    8. Happy Number
    9. Minimum Moves To Equal Array Elements
    10. Multiply Strings
    11. Nth Tribonacci Number
    12. Nth Ugly Number
    13. Palindrome Number
    14. Power Of Four
    15. Power Of Three
    16. Prime Arrangements
    17. Random Pick With Weight
    18. Reverse Integer
    19. Strobogrammatic Number
    20. Ugly Number
  • Greedy Based Problems (25)
    1. Assign Cookies
    2. Boat To Save People Greedy
    3. Car Pooling
    4. Course Schedule III
    5. Delete Columns To Make Sorted
    6. Farthest Building You Can Reach
    7. Gas Station
    8. Hand Of Straights
    9. Jump Game
    10. Jump Game II
    11. Lemonade Change
    12. Maximum Swap
    13. Maximum Units On A Truck
    14. Minimum Cost To Connect Sticks
    15. Minimum Domino Rotations For Equal Row
    16. Minimum Number Of Refueling Stops
    17. Minimum Number Of Taps To Water Garden
    18. Partition Labels
    19. Queue Reconstruction By Height
    20. Remove Duplicate Letters
    21. Reorganize String
    22. Smallest Range From K Lists Greedy
    23. Task Scheduler
    24. Two City Scheduling
    25. Wiggle Subsequence
  • Design Based Problems (15)
    1. All O One Data Structure
    2. Design Browser History
    3. Design Circular Deque
    4. Design Circular Queue
    5. Design Hash Map Custom
    6. Design Snake Game
    7. Design Tic Tac Toe
    8. Design Twitter
    9. LFU Cache Design
    10. LRU Cache Design
    11. Max Stack
    12. Number Of Recent Calls
    13. Randomized Collection
    14. Randomized Set
    15. Time Based Key Value Store
  • Matrix Based Problems (15)
    1. Count Negative Numbers In Sorted Matrix
    2. Flood Fill
    3. Game Of Life
    4. Longest Increasing Path In Matrix
    5. Maximal Rectangle
    6. Minesweeper
    7. Pacific Atlantic Water Flow
    8. Rotate Image
    9. Search A 2 D Matrix
    10. Search A 2 D Matrix II
    11. Set Matrix Zeroes
    12. Shortest Path In Binary Matrix
    13. Spiral Matrix
    14. Spiral Matrix II
    15. Walls And Gates
  • Linked List Based Problems (25)
    1. Add Two Numbers
    2. Add Two Numbers II
    3. Copy List With Random Pointer
    4. Delete Node In Linked List
    5. Flatten Multilevel Doubly Linked List
    6. Intersection Of Two Linked Lists
    7. LFU Cache
    8. LRU Cache
    9. Linked List Cycle
    10. Linked List Cycle II
    11. Merge Two Sorted Lists
    12. Merge Two Sorted Lists And Remove Duplicates
    13. Middle Of Linked List
    14. Odd Even Linked List
    15. Palindrome Linked List
    16. Partition List
    17. Remove Duplicates From Sorted List
    18. Remove Nth Node From End Of List
    19. Reorder List
    20. Reverse Linked List
    21. Reverse Linked List II
    22. Reverse Nodes In K Group
    23. Rotate List
    24. Sort List
    25. Swap Nodes In Pairs
© CsCode.io