Learnitweb

Stream programming questions

Leetcode questions

  1. Merge Sorted Array
  2. Merge Two Sorted Lists in Java
  3. Rearrange Sorted Array in Max/Min Form
  4. Two Sum Problem
  5. Container with most water problem
  6. Maximum Subarray
  7. Decode ways
  8. Symmetric Tree
  9. Best time to buy and sell stock
  10. Clone Graph
  11. Happy Number
  12. Move Zeroes
  13. Group anagrams
  14. Counting Elements
  15. Middle of the Linked List
  16. Backspace String Compare
  17. Min Stack
  18. Diameter of Binary Tree
  19. Last Stone Weight
  20. Contiguous Array
  21. Product of Array Except Self
  22. Valid Parenthesis String
  23. Number of Islands
  24. Minimum Path Sum
  25. Search in Rotated Sorted Array
  26. Leftmost Column with at Least a One
  27. Subarray Sum Equals K
  28. Bitwise AND of Numbers Range
  29. LRU Cache
  30. Jump Game
  31. Longest Common Subsequence
  32. Maximal Square
  33. First Unique Number
  34. Binary Tree Maximum Path Sum
  35. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree
  36. First Bad Version
  37. LeetCode 771: Jewels and Stones
  38. LeetCode 383: Ransom Note
  39. LeetCode 476: Number Complement
  40. LeetCode 387: First Unique Character in a String
  41. LeetCode 169: Majority Element
  42. LeetCode 993: Cousins in Binary Tree
  43. LeetCode 1232: Check If It Is a Straight Line
  44. LeetCode 367: Valid Perfect Square
  45. LeetCode 997: Find the Town Judge
  46. LeetCode 733: Flood Fill
  47. LeetCode 540: Single Element in a Sorted Array
  48. LeetCode 402: Remove K Digits
  49. LeetCode 208: Implement Trie
  50. LeetCode 918: Maximum Sum Circular Subarray
  51. LeetCode 328: Odd Even Linked List
  52. LeetCode 1447: Simplified Fractions
  53. LeetCode 438: Find All Anagrams in a String
  54. LeetCode 567: Permutation in String
  55. LeetCode 901: Online Stock Span
  56. LeetCode 230: Kth Smallest Element in a BST
  57. LeetCode 1277: Count Square Submatrices with All Ones
  58. LeetCode Problem 451: Sort Characters By Frequency
  59. LeetCode Problem 986: Interval List Intersections
  60. LeetCode Problem 46: Permutations
  61. LeetCode Problem 1456: Maximum Number of Vowels in a Substring of Given Length
  62. LeetCode Problem 1035: Uncrossed Lines
  63. LeetCode Problem 886: Possible Bipartition
  64. LeetCode Problem 338: Counting Bits
  65. LeetCode Problem 207: Course Schedule
  66. LeetCode Problem 973: K Closest Points to Origin
  67. LeetCode Problem 1460: Make Two Arrays Equal by Reversing Subarrays
  68. Problem 72: Edit Distance
  69. Problem 226: Invert Binary Tree
  70. Problem 237: Delete Node in a Linked List
  71. Problem 1029: Two City Scheduling
  72. LeetCode Problem 344: Reverse String
  73. LeetCode Problem 541: Reverse String II
  74. LeetCode Problem 557: Reverse Words in a String III
  75. LeetCode Problem 528: Random Pick with Weight
  76. LeetCode Problem 406: Queue Reconstruction by Height
  77. LeetCode Problem 518: Coin Change II
  78. LeetCode Problem 231: Power of Two
  79. LeetCode Problem 547: Number of Provinces
  80. LeetCode Problem 392: Is Subsequence
  81. LeetCode Problem 35: Search Insert Position
  82. LeetCode Problem 75: Sort Colors
  83. LeetCode Problem 380: Insert Delete GetRandom O(1)
  84. LeetCode Problem 1266: Minimum Time Visiting All Points
  85. LeetCode Problem 368: Largest Divisible Subset
  86. LeetCode Problem 787: Cheapest Flights Within K Stops
  87. LeetCode Problem 700: Search in a Binary Search Tree
  88. LeetCode Problem 468: Validate IP Address
  89. LeetCode Problem 130: Surrounded Regions
  90. LeetCode Problem 275: H-Index II
  91. LeetCode Problem 1044: Longest Duplicate Substring
  92. LeetCode Problem 60: Permutation Sequence
  93. LeetCode Problem 174: Dungeon Game
  94. LeetCode Problem 222: Count Complete Tree Nodes
  95. LeetCode Problem 91: Decode Ways
  96. LeetCode Problem 96: Unique Binary Search Trees
  97. LeetCode Problem 287 – Find the Duplicate Number
  98. LeetCode Problem 129 – Sum Root to Leaf Numbers
  99. LeetCode Problem 279 – Perfect Squares
  100. LeetCode Problem 62: Unique Paths
  101. LeetCode Problem 212: Word Search II
  102. LeetCode Problem 414: Third Maximum Number
  103. LeetCode Problem 441: Arranging Coins
  104. LeetCode Problem 306: Additive Number
  105. LeetCode Problem 107: Binary Tree Level Order Traversal II
  106. LeetCode Problem 957: Prison Cells After N Days
  107. LeetCode Problem 264: Ugly Number II
  108. LeetCode Problem 461: Hamming Distance
  109. LeetCode Problem 66: Plus One
  110. LeetCode Problem 463: Island Perimeter
  111. LeetCode Problem 15: 3Sum
  112. LeetCode Problem 662: Maximum Width of Binary Tree
  113. LeetCode Problem 430: Flatten a Multilevel Doubly Linked List
  114. LeetCode Problem 78: Subsets
  115. LeetCode Problem 5: Longest Palindromic Substring
  116. LeetCode Problem 190: Reverse Bits
  117. LeetCode Problem 100: Same Tree
  118. LeetCode Problem 1344: Angle Between Hands of a Clock
  119. Problem: Reverse Words in a String (LeetCode 151)
  120. LeetCode Problem 50: Pow(x, n)
  121. Problem 347: Top K Frequent Elements
  122. Problem 395: Longest Substring with At Least K Repeating Characters
  123. Problem 210: Course Schedule II
  124. Problem 67: Add Binary
  125. Problem 203: Remove Linked List Elements
  126. Problem 79: Word Search
  127. Problem 103: Binary Tree Zigzag Level Order Traversal
  128. Problem 260: Single Number III
  129. Problem 797: All Paths From Source to Target
  130. Problem 153: Find Minimum in Rotated Sorted Array
  131. Problem 154: Find Minimum in Rotated Sorted Array II
  132. Problem 258: Add Digits
  133. Problem 25: Reverse Nodes in k-Group
  134. Problem 258: Add Digits
  135. Problem 621: Task Scheduler
  136. Problem 309: Best Time to Buy and Sell Stock with Cooldown
  137. Problem 140: Word Break II
  138. Problem 70: Climbing Stairs
  139. Problem 520: Detect Capital
  140. Problem 705: Design HashSet
  141. Problem 125: Valid Palindrome
  142. LeetCode 342: Power of Four
  143. LeetCode 974: Subarrays Divisible by K
  144. LeetCode 211 — Design Add and Search Words Data Structure
  145. LeetCode 442 — Find All Duplicates in an Array
  146. LeetCode 987 — Vertical Order Traversal of a Binary Tree
  147. LeetCode 437 — Path Sum III
  148. LeetCode 994 — Rotting Oranges
  149. LeetCode 171 — Excel Sheet Column Number
  150. LeetCode 274 — H-Index
  151. LeetCode 119 — Pascal’s Triangle II
  152. LeetCode 1286 — Iterator for Combination
  153. LeetCode 409 — Longest Palindrome
  154. LeetCode 435 — Non-Overlapping Intervals
  155. LeetCode 123 — Best Time to Buy and Sell Stock III
  156. LeetCode 1203 — Sort Items by Groups Respecting Dependencies
  157. LeetCode 1103 — Distribute Candies to People
  158. LeetCode 967 — Numbers With Same Consecutive Differences
  159. LeetCode 824 — Goat Latin
  160. LeetCode 143 — Reorder List
  161. LeetCode 905 — Sort Array By Parity
  162. LeetCode 497 — Random Point in Non-overlapping Rectangles
  163. LeetCode 1032 — Stream of Characters
  164. LeetCode 404 — Sum of Left Leaves
  165. LeetCode 983 — Minimum Cost For Tickets
  166. LeetCode 412 — Fizz Buzz
  167. LeetCode 436 — Find Right Interval
  168. LeetCode 470 — Implement Rand10() Using Rand7()
  169. LeetCode 969 — Pancake Sorting
  170. LeetCode 952 — Largest Component Size by Common Factor
  171. LeetCode 949 — Largest Time for Given Digits
  172. LeetCode 220 — Contains Duplicate III
  173. LeetCode 459 — Repeated Substring Pattern
  174. LeetCode 763 — Partition Labels
  175. LeetCode 1305 — All Elements in Two Binary Search Trees
  176. LeetCode 1572 — Matrix Diagonal Sum
  177. LeetCode 835 — Image Overlap
  178. LeetCode 290 — Word Pattern
  179. Sum of Root to Leaf Binary Numbers
  180. Maximum Product Subarray
  181. Combination Sum III
  182. LeetCode Problem 57 – Insert Interval
  183. LeetCode Problem 198 – House Robber
  184. Length of Last Word
  185. Sequential Digits
  186. LeetCode Problem 134 – Gas Station
  187. LeetCode Problem 389 Find the Difference
  188. LeetCode Problem 41 First Missing Positive
  189. LeetCode Problem 189 Rotate Array
  190. LeetCode Problem 74 Search a 2D Matrix
  191. LeetCode Problem 228 Summary Ranges
  192. LeetCode Problem 849 Maximize Distance to Closest Person
  193. Number of Longest Increasing Subsequence
  194. Convert Binary Number in a Linked List to Integer
  195. LeetCode Problem 147 Insertion Sort List
  196. LeetCode Problem 1446 Consecutive Characters
  197. LeetCode Problem 310 Minimum Height Trees
  198. Minimum Cost to Move Chips to the Same Position
  199. Find the Smallest Divisor Given a Threshold
  200. LeetCode Problem 563 Binary Tree Tilt
  201. LeetCode Problem 832 Flipping an Image
  202. LeetCode Problem 593 Valid Square
  203. LeetCode Problem 56 Merge Intervals
  204. LeetCode Problem 394 Decode String
  205. LeetCode Problem 81 Search in Rotated Sorted Array II
  206. Check Array Formation Through Concatenation
  207. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
  208. Beautiful Arrangement
  209. Merge Two Sorted Lists
  210. Remove Duplicates from Sorted List II
  211. LeetCode Problem 881 Boats to Save People
  212. Largest Rectangle in Histogram
  213. LeetCode Problem 706 Design HashMap
  214. Palindrome Linked List
  215. Running Sum of 1D Array
  216. Non-decreasing Array
  217. LeetCode Problem 665 Non-decreasing Array
  218. Binary Tree Level Order Traversal
  219. Partitioning Into Minimum Number of Deci-Binary Numbers
  220. Maximum Product of Word Lengths
  221. Max Area of Island
  222. Longest Consecutive Sequence
  223. Partition Array into Disjoint Intervals
  224. Binary Tree Pruning
  225. LeetCode Problem 126 Word Ladder II
  226. Build Array from Permutation
  227. Concatenation of Array
  228. LeetCode Problem 1306 Jump Game III
  229. Range Sum of BST
  230. Pairs of Songs With Total Durations Divisible by 60
  231. Insert into a Binary Search Tree
  232. Merge k Sorted Lists
  233. LeetCode 2: Add Two Numbers
  234. LeetCode 3: Longest Substring Without Repeating Characters
  235. LeetCode 4: Median of Two Sorted Arrays
  236. LeetCode 818 — Race Car
  237. Android Unlock Patterns
  238. LeetCode 112 — Path Sum
  239. LeetCode 22 — Generate Parentheses
  240. LeetCode 981 — Time Based Key-Value Store
  241. LeetCode 16 — 3Sum Closest
  242. LeetCode 653 — Two Sum IV: Input is a BST
  243. LeetCode 16 — 3Sum Closest
  244. LeetCode 843 — Guess the Word
  245. LeetCode 98 — Validate Binary Search Tree
  246. LeetCode 899 — Orderly Queue
  247. LeetCode 646 — Maximum Length of Pair Chain
  248. LeetCode 300 — Longest Increasing Subsequence
  249. LeetCode 827 — Making A Large Island
  250. LeetCode 2140 — Solving Questions With Brainpower
  251. LeetCode 2873 — Maximum Value of an Ordered Triplet I
  252. LeetCode 1123 — Lowest Common Ancestor of Deepest Leaves
  253. LeetCode 1863 — Sum of All Subset XOR Totals
  254. LeetCode 38 — Count and Say
  255. LeetCode 781 — Rabbits in Forest
  256. LeetCode 2145 — Count the Hidden Sequences
  257. LeetCode 2444 — Count Subarrays With Fixed Bounds
  258. LeetCode 416 — Partition Equal Subset Sum
  259. LeetCode 3396 — Minimum Number of Operations to Make Elements in Array Distinct
  260. LeetCode 3375 — Minimum Operations to Make Array Values Equal to K