• Sorting Algorithms (2)
    1. MergeSort Algorithm
    2. QuickSort Algorithm
  • Strings & Hashing Based Problems (26)
    1. Given a string, find if it has unique characters
    2. Reverse String
    3. Roman To Integer
    4. Integer To Roman
    5. Merge Strings Alternately
    6. Valid Anagram
    7. Group Anagrams
    8. Find All Anagrams in a String
    9. Find The Index of The First Occurrence in a String
    10. Is Subsequence
    11. Length Of Last Word
    12. Longest Common Prefix
    13. Isomorphic Strings
    14. Maximum Number of Balloons
    15. Word Pattern
    16. Encode and Decode Strings
    17. Encode and Decode Tiny URL
    18. Unique Length-3 Palindromic Subsequences
    19. Minimum Number of Swaps to Make The String Balanced
    20. Maximum Product of The Length of Two Palindromic Subsequences
    21. Repeated DNA Sequences
    22. Check if a String Contains all Binary Codes of Size K
    23. Optimal Partition of String
    24. Basic Calculator II
    25. Valid Palindrome
    26. Valid Palindrome II
  • Arrays & Hashing Based Problems (60)
    1. Two Sum - Find a pair of integers from an array whose sum equal to a target K
    2. Two Sum II, Input Array Is Sorted
    3. 3 Sum - Find all triplets from array whose sum equal to 0
    4. 4 Sum - Find all quadruplets from array whose sum equal to a target N
    5. Transpose Matrix
    6. Design HashSet
    7. Design HashMap
    8. Contains Duplicates
    9. Concatenation of Array
    10. Replace elements with greatest element on right side
    11. Pascal's Triangle
    12. Remove Element
    13. Unique Email Addresses
    14. Can Place Flowers
    15. Majority Element
    16. Next Greater Element
    17. Find Pivot Index
    18. Range Sum Query Immutable
    19. Range Sum Query 2D Immutable
    20. Find All Numbers Disappeared in an Array
    21. Find Kth largest element in an unsorted array
    22. Top K Frequent Elements
    23. Product of Array Except Self
    24. Valid Sudoku
    25. Longest Consecutive Sequence
    26. Sort Colors
    27. Squares of a Sorted Array
    28. Brick Wall
    29. Best Time to Buy and Sell Stock II
    30. Subarray Sum Equals K
    31. Number of Pairs of Interchangeable Rectangles
    32. Grid Game
    33. Wiggle Sort
    34. Largest Number
    35. Continuous Subarray Sum
    36. Push Dominoes
    37. Insert Delete Get Random O(1)
    38. Non Decreasing Array
    39. First Missing Positive
    40. Sign of An Array
    41. Find the Difference of Two Arrays
    42. Design Parking System
    43. Number of Zero-Filled Subarrays
    44. Design Underground System
    45. Minimum Penalty for a Shop
    46. Text Justification
    47. Naming a Company
    48. Minimum Difference Between Highest and Lowest of K Scores
    49. Merge Sorted Array
    50. Move Zeroes
    51. Container With Most Water
    52. Remove Duplicates From Sorted Array
    53. Remove Duplicates From Sorted Array II
    54. Number of Subsequences That Satisfy the Given Sum Condition
    55. Rotate Array
    56. Array With Elements Not Equal to Average of Neighbors
    57. Boats to Save People
    58. Trapping Rain Water
    59. Median of two sorted arrays of same size
    60. Median of two sorted arrays of different size
  • Binary Search Based Problems (8)
    1. Binary Search
    2. Search Insert Position
    3. Guess Number Higher or Lower
    4. Arranging Coins
    5. Valid Perfect Square
    6. Sqrt(x)
    7. Single Element in a Sorted Array
    8. Capacity To Ship Packages Within D Days
  • Dynamic Programming Based Problems (13)
    1. Dynamic Programming - Introduction
    2. Climbing Stairs
    3. Min Cost Climbing Stairs
    4. House Robber
    5. House Robber II
    6. Longest Palindrome Substring
    7. Palindromic Substrings
    8. Decode Ways
    9. Coin Change
    10. Maximum Product Subarray
    11. Word Break
    12. Partition Equal Subset Sum
    13. Traingle Minimum Path Sum
  • Graph Based Problems (1)
    1. Graph - Introduction
  • Sliding Window Based Problems (17)
    1. Best Time to Buy and Sell Stock
    2. Contains Duplicate II
    3. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
    4. Longest Substring Without Repeating Characters
    5. Longest Repeating Character Replacement
    6. Permutation in String
    7. Frequency of the Most Frequent Element
    8. Fruits Into Basket
    9. Maximum Number of Vowels in a Substring of Given Length
    10. Minimum Number of Flips to Make the Binary String Alternating
    11. Minimum Size Subarray Sum
    12. Find K Closest Elements
    13. Minimum Operations to Reduce X to Zero
    14. Minimum Window Substring
    15. Sliding Window Maximum
    16. Longest substring with K unique characters
    17. Longest Substring with At Least K Repeating Characters
  • Stack Based Problems (18)
    1. Valid Parentheses
    2. Baseball Game
    3. Implement Stack Using Queues
    4. Min Stack
    5. Evaluate Reverse Polish Notation
    6. Removing Stars From a String
    7. Validate Stack Sequences
    8. Asteroid Collision
    9. Daily Temperatures
    10. Online Stock Span
    11. Car Fleet
    12. Simplify Path
    13. Decode String
    14. Remove K Digits
    15. Remove All Adjacent Duplicates In String II
    16. 132 Pattern
    17. Maximum Frequency Stack
    18. Largest Rectangle In Histogram
  • Linked List Based Problems (2)
    1. Merge two sorted linked lists
    2. Merge two sorted linked lists and remove duplicates
  • Backtracking Based Problems (1)
    1. Generate Parentheses
© CsCode.io