Site Search:

Random algorithm problems


  1. Anagram groups
  2. Validate Binary Search Tree
  3. Valid Anagram
  4. Find two swapped elements in an almost sorted array
  5. Convert a String into Integer
  6. put ordered Array into binary search tree
  7. Check Palindromic for linked list
  8. Delete Columns to Make Sorted
  9. Reorder Data in Log Files
  10. Max Stock Gain
  11. Three Sum Equals
  12. Kth smallest number in an array
  13. Letter Combinations of a Phone Number
  14. Construct Binary Tree from Preorder and Inorder Traversal
  15. BST Serialize and Deserialize
  16. Moving Stones Until Consecutive II
  17. Reverse an Integer
  18. Minimum size subarray sum
  19. Longest Substring Without Repeating Characters
  20. Minimum Cost Tree From Leaf Values
  21. Palindrom II
  22. Find Maximum depth of BST
  23. Best time to buy and sell stock II
  24. Decode String
  25. Kill Process
  26. Find first and last position of num in an array
  27. Generate Parentheses
  28. Distance of Binary Search Tree nodes
  29. Longest Turbulent Subarray
  30. Construct Binary Tree from Postorder and Inorder Traversal
  31. 0/1 binary tree
  32. Length of increasing sequence
  33. Number of Islands
  34. Binary Tree Level Order Traversal
  35. Largest Rectangle in Histogram
  36. Minimum Window Substring II
  37. Combinations
  38. Invert Binary Tree
  39. Longest Substring with At Most K Distinct Characters
  40. Root to Leaf Paths
  41. Same Tree
  42. Balance Parentheses in String
  43. Validate brackets
  44. Containers with most water
  45. Implement square root
  46. Best Time to Buy and Sell Stock
  47. Binary Tree Maximum Path Sum
  48. Gray Code Sequence
  49. Regular Expression Matching
  50. Min value in Stack
  51. Power of 3
  52. Hanoi Towers
  53. Find the height of a tree
  54. Sliding window maximum
  55. Right shift array elements K positions
  56. Zig Zag String
  57. Gas Stations
  58. Merge k sorted linked lists
  59. Digits to Letters
  60. Mark enclosed Regions
  61. Minimum Remove to Make Valid Parentheses
  62. Self-symmetric Binary Tree
  63. remove values from the array
  64. Letter Case Permutation
  65. Permutations
  66. Find value that is larger than medium in BST
  67. BinaryTree Vertical Traversal
  68. Peak Index in a Mountain Array
  69. Sudoku Solver
  70. Convert Binary Search Tree to Sorted Doubly Linked List
  71. Integers that appeared odd number of times
  72. Binary Tree inorder traversal
  73. Replace words
  74. Unique Binary Search Trees
  75. Tile an area
  76. Pascal's Triangle
  77. K Equal Sum Subarrays
  78. Binary Tree postorder traversal
  79. Sliding Puzzle
  80. Word's Parity
  81. Island Perimeter
  82. Longest Repeating String
  83. N-Queens II
  84. Binary Search Tree Iterator
  85. Find tree path with sum equal to a number
  86. Binary Tree Upside Down
  87. Word Break
  88. Zigzag Conversion
  89. Implement Trie (Prefix Tree)
  90. Covid-19 infected population
  91. Serialize and Deserialize Binary Tree
  92. SubSets
  93. String Compression
  94. Merge Two Binary Trees
  95. Integer to English Words
  96. Design Add and Search Words Data Structure
  97. Binary Tree Preorder traversal
  98. Recover Binary Search Tree
  99. Range Sum of BST
  100. Merge A List Of Sorted Arrays
  101. Robot Room Cleaner
  102. Sort an increasing decreasing array
  103. Closest Binary Search Tree Value II
  104. Longest Repeating Character Replacement
  105. Max amount of gold
  106. Merge Intervals
  107. Add Two Numbers II
  108. InterSection of Two Arrays II
  109. Subarrays with K Different Integers
  110. Valid Parentheses
  111. Remove duplicate characters
  112. Binary Tree Right Side View
  113. Two Sum
  114. Find Minimum in rotated sorted array
  115. Longest Increasing Path in a Matrix
  116. Meeting Rooms II
  117. Product Of Array except Self
  118. First Unique Character in a String
  119. Decode Ways
  120. Shortest subarray with sum larger than K
  121. Copy List with Random Pointer
  122. LRU Cache
  123. Binary Add
  124. Word Search
  125. Search a 2D Matrix II
  126. Trapping Rain Water
  127. Subarray Sum Equals K
  128. Number of submatrices that sum to target