0% found this document useful (0 votes)
30 views11 pages

Liked and Solved

Uploaded by

SAKSHAM PRASAD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views11 pages

Liked and Solved

Uploaded by

SAKSHAM PRASAD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

1.

Two Sum
2. Longest Substring Without Repeating Characters
3. Add Two Numbers
4. Valid Parentheses
5. 3Sum
6. Reverse Integer
7. Best Time to Buy and Sell Stock
8. Longest Palindromic Substring
9. Maximum Subarray
10. Palindrome Number
11. Remove Duplicates from Sorted Array
12. Merge Two Sorted Lists
13. Longest Common Prefix
14. Search in Rotated Sorted Array
15. Median of Two Sorted Arrays
16. Reverse Linked List
17. Validate Binary Search Tree
18. Contains Duplicate
19. Climbing Stairs
20. String to Integer (atoi)
21. Container With Most Water
22. Roman to Integer
23. Search Insert Position
24. Remove Nth Node From End of List
25. Merge Sorted Array
26. Linked List Cycle
27. Merge Intervals
28. Valid Palindrome
29. Number of Islands
30. Move Zeroes
31. Valid Anagram
32. Rotate Array
33. Find First and Last Position of Element in Sorted Array
34. Find the Index of the First Occurrence in a String
35. Jump Game
36. Trapping Rain Water
37. Group Anagrams
38. House Robber
39. Maximum Depth of Binary Tree
40. Single Number
41. Majority Element
42. Product of Array Except Self
43. Plus One
44. Merge k Sorted Lists
45. Coin Change
46. LRU Cache
47. Sqrt(x)
48. Binary Search
49. Kth Largest Element in an Array
50. Remove Element
51. Letter Combinations of a Phone Number
52. Pow(x, n)
53. Symmetric Tree
54. Binary Tree Level Order Traversal
55. Word Break
56. Binary Tree Inorder Traversal
57. Palindrome Linked List
58. Longest Consecutive Sequence
59. Word Search
60. Top K Frequent Elements
61. Maximum Product Subarray
62. Search a 2D Matrix
63. Sort Colors
64. Reverse String
65. Permutations
66. Find the Duplicate Number
67. First Bad Version
68. Next Permutation
69. Longest Increasing Subsequence
70. Course Schedule
71. Combination Sum
72. Find Minimum in Rotated Sorted Array
73. Same Tree
74. Unique Paths
75. Generate Parentheses
76. Two Sum II - Input array is sorted
77. Missing Number
78. Subarray Sum Equals K
79. Min Stack
80. Invert Binary Tree
81. Minimum Window Substring
82. Best Time to Buy and Sell Stock II
83. Binary Tree Maximum Path Sum
84. Decode Ways
85. Subsets
86. Lowest Common Ancestor of a Binary Tree
87. Intersection of Two Linked Lists
88. Spiral Matrix
89. Rotate Image
90. Regular Expression Matching
91. Reverse Words in a String
92. First Missing Positive
93. Jump Game II
94. Divide Two Integers
95. Length of Last Word
96. Path Sum
97. Balanced Binary Tree
98. Find Peak Element
99. Linked List Cycle II
100. First Unique Character in a String
101. Remove Duplicates from Sorted List
102. Set Matrix Zeroes
103. Pascal's Triangle
104. Word Ladder
105. Middle of the Linked List
106. Add Binary
107. Sliding Window Maximum
108. Happy Number
109. Diameter of Binary Tree
110. 3Sum Closest
111. Squares of a Sorted Array
112. Fibonacci Number
113. Valid Sudoku
114. Is Subsequence
115. Copy List with Random Pointer
116. Lowest Common Ancestor of a Binary Search Tree
117. Binary Tree Preorder Traversal
118. Swap Nodes in Pairs
119. ZigZag Conversion
120. Running Sum of 1d Array
121. 4Sum
122. Construct Binary Tree from Preorder and Inorder Traversal
123. Isomorphic Strings
124. Largest Rectangle in Histogram
125. Minimum Depth of Binary Tree
126. Kth Smallest Element in a BST
127. Binary Tree Right Side View
128. Insert Interval
129. Minimum Size Subarray Sum
130. Rotate List
131. Clone Graph
132. Remove Linked List Elements
133. Count Primes
134. Minimum Path Sum
135. Binary Tree Zigzag Level Order Traversal
136. Power of Two
137. Longest Valid Parentheses
138. Intersection of Two Arrays II
139. Course Schedule II
140. Min Cost Climbing Stairs
141. Unique Paths II
142. Convert Sorted Array to Binary Search Tree
143. Number of 1 Bits
144. Search a 2D Matrix II
145. Find All Anagrams in a String
146. Integer to Roman
147. Longest Common Subsequence
148. Permutation in String
149. Reverse Linked List II
150. K Closest Points to Origin
151. Edit Distance
152. Reverse Nodes in k-Group
153. Populating Next Right Pointers in Each Node
154. Partition Equal Subset Sum
155. Implement Trie (Prefix Tree)
156. Find Pivot Index
157. Combination Sum II
158. Flatten Binary Tree to Linked List
159. Gas Station
160. Counting Bits
161. Max Consecutive Ones
162. Binary Tree Postorder Traversal
163. Rotting Oranges
164. Can Place Flowers
165. Multiply Strings
166. House Robber II
167. Wildcard Matching
168. Serialize and Deserialize Binary Tree
169. Find Median from Data Stream
170. Contains Duplicate II
171. Search in Rotated Sorted Array II
172. Reorder List
173. Subsets II
174. Word Search II
175. Decode String
176. Evaluate Reverse Polish Notation
177. Subtree of Another Tree
178. Meeting Rooms II
179. Permutations II
180. Valid Palindrome II
181. Delete Node in a Linked List
182. Odd Even Linked List
183. Perfect Squares
184. Daily Temperatures
185. Backspace String Compare
186. Sort List
187. Find All Numbers Disappeared in an Array
188. Surrounded Regions
189. Ransom Note
190. Palindrome Partitioning
191. Maximal Square
192. Fizz Buzz
193. Path Sum II
194. Remove Duplicates from Sorted List II
195. Flood Fill
196. Number of Provinces
197. Insert Delete GetRandom O(1)
198. Max Area of Island
199. Intersection of Two Arrays
200. Triangle
201. Count and Say
202. Combinations
203. Word Pattern
204. N-Queens
205. Simplify Path
206. Target Sum
207. Power of Three
208. Longest Repeating Character Replacement
209. Majority Element II
210. Unique Binary Search Trees
211. Remove Duplicates from Sorted Array II
212. Path Sum III
213. Best Time to Buy and Sell Stock III
214. Implement Queue using Stacks
215. Design Add and Search Words Data Structure
216. Pascal's Triangle II
217. Palindromic Substrings
218. Binary Search Tree Iterator
219. Single Element in a Sorted Array
220. Jewels and Stones
221. Merge Two Binary Trees
222. Peak Index in a Mountain Array
223. Sum Root to Leaf Numbers
224. Interleaving String
225. Basic Calculator II
226. Koko Eating Bananas
227. Kth Smallest Element in a Sorted Matrix
228. Reverse Bits
229. Count Complete Tree Nodes
230. 01 Matrix
231. Cheapest Flights Within K Stops
232. Reverse Words in a String III
233. Range Sum of BST
234. Largest Number
235. Continuous Subarray Sum
236. Increasing Triplet Subsequence
237. Reverse Vowels of a String
238. Word Break II
239. Binary Tree Paths
240. Top K Frequent Words
241. Coin Change II
242. Construct Binary Tree from Inorder and Postorder Traversal
243. Find All Duplicates in an Array
244. Sudoku Solver
245. Partition List
246. Find K Closest Elements
247. Populating Next Right Pointers in Each Node II
248. Add Strings
249. Remove K Digits
250. Search in a Binary Search Tree
251. Add Digits
252. Longest Increasing Path in a Matrix
253. Sort Array By Parity
254. Power of Four
255. Find the Difference
256. Excel Sheet Column Title
257. Task Scheduler
258. Word Ladder II
259. Next Greater Element I
260. Is Graph Bipartite?
261. Valid Perfect Square
262. Non-overlapping Intervals
263. Candy
264. Third Maximum Number
265. Best Time to Buy and Sell Stock with Cooldown
266. Max Points on a Line
267. Longest Palindrome
268. Valid Number
269. Maximal Rectangle
270. Single Number II
271. Delete Node in a BST
272. Excel Sheet Column Number
273. Partition Labels
274. Best Time to Buy and Sell Stock IV
275. Implement Stack using Queues
276. Sort Characters By Frequency
277. Asteroid Collision
278. Longest Palindromic Subsequence
279. Binary Tree Level Order Traversal II
280. All Nodes Distance K in Binary Tree
281. Convert Sorted List to Binary Search Tree
282. Sort an Array
283. Combination Sum IV
284. Richest Customer Wealth
285. Guess Number Higher or Lower
286. Basic Calculator
287. Recover Binary Search Tree
288. Evaluate Division
289. Maximum Width of Binary Tree
290. Network Delay Time
291. Two Sum IV - Input is a BST
292. Last Stone Weight
293. Minimum Remove to Make Valid Parentheses
294. Shortest Unsorted Continuous Subarray
295. Repeated Substring Pattern
296. Find the Town Judge
297. Unique Binary Search Trees II
298. Ugly Number
299. Spiral Matrix II
300. Reconstruct Itinerary
301. Vertical Order Traversal of a Binary Tree
302. Number of Good Pairs
303. Shortest Path in Binary Matrix
304. Count of Smaller Numbers After Self
305. Pacific Atlantic Water Flow
306. Remove All Adjacent Duplicates in String
307. Valid Mountain Array
308. N-th Tribonacci Number
309. Kids With the Greatest Number of Candies
310. Design HashMap
311. House Robber III
312. Shuffle the Array
313. Non-decreasing Array
314. Kth Largest Element in a Stream
315. Verifying an Alien Dictionary
316. Integer to English Words
317. Max Consecutive Ones III
318. Find Minimum in Rotated Sorted Array II
319. Summary Ranges
320. Remove Invalid Parentheses
321. Reorganize String
322. Restore IP Addresses
323. String Compression
324. Alien Dictionary
325. Sum of Left Leaves
326. Permutation Sequence
327. Split Array Largest Sum
328. Substring with Concatenation of All Words
329. Remove Duplicate Letters
330. Add Two Numbers II
331. All Paths From Source to Target
332. Island Perimeter
333. Distinct Subsequences
334. Longest String Chain
335. Find Smallest Letter Greater Than Target
336. Minimum Height Trees
337. Number of Steps to Reduce a Number to Zero
338. Combination Sum III
339. Capacity To Ship Packages Within D Days
340. Sum of Two Integers
341. Contiguous Array
342. Game of Life
343. Factorial Trailing Zeroes
344. Insert into a Binary Search Tree
345. Next Greater Element II
346. Hamming Distance
347. 132 Pattern
348. Fruit Into Baskets
349. Find Numbers with Even Number of Digits
350. Minimum Number of Arrows to Burst Balloons
351. Arranging Coins
352. Ugly Number II
353. Partition to K Equal Sum Subsets
354. Design Linked List
355. How Many Numbers Are Smaller Than the Current Number
356. Text Justification
357. Accounts Merge
358. Time Based Key-Value Store
359. Delete and Earn
360. Compare Version Numbers
361. Flatten Nested List Iterator
362. Range Sum Query - Immutable
363. Kth Missing Positive Number
364. Average of Levels in Binary Tree
365. Burst Balloons
366. Palindrome Partitioning II
367. Find K Pairs with Smallest Sums
368. Concatenation of Array
369. Count Good Nodes in Binary Tree
370. The Skyline Problem
371. Maximum Length of Repeated Subarray
372. Best Time to Buy and Sell Stock with Transaction Fee
373. Keys and Rooms
374. Detect Capital
375. Merge Strings Alternately
376. Graph Valid Tree
377. Range Sum Query 2D - Immutable
378. Defanging an IP Address
379. K-diff Pairs in an Array
380. Minimum Cost For Tickets
381. Interval List Intersections
382. Random Pick with Weight
383. Maximum Average Subarray I
384. Redundant Connection
385. Valid Parenthesis String
386. Repeated DNA Sequences
387. Contains Duplicate III
388. Maximum Sum Circular Subarray
389. Unique Email Addresses
390. Integer Break
391. Subarray Product Less Than K
392. Duplicate Zeros
393. Queue Reconstruction by Height
394. H-index
395. Set Mismatch
396. Check if N and Its Double Exist
397. Convert Binary Number in a Linked List to Integer
398. Single Number III
399. Remove All Adjacent Duplicates in String II
400. Range Sum Query - Mutable
401. Greatest Common Divisor of Strings
402. Count Negative Numbers in a Sorted Matrix
403. Maximum Product of Three Numbers
404. 4Sum II
405. Dungeon Game
406. Frog Jump
407. Monotonic Array
408. Boats to Save People
409. Russian Doll Envelopes
410. Construct Binary Search Tree from Preorder Traversal
411. Unique Number of Occurrences
412. Design HashSet
413. Binary Tree Vertical Order Traversal
414. Bulls and Cows
415. Number of Longest Increasing Subsequence
416. LFU Cache
417. Flatten a Multilevel Doubly Linked List
418. Insertion Sort List
419. Sum of Subarray Minimums
420. Minimum Absolute Difference in BST
421. Fraction to Recurring Decimal
422. Maximum Points You Can Obtain from Cards
423. Validate Stack Sequences
424. Reshape the Matrix
425. Minimum Falling Path Sum
426. Longest Substring with At Most K Distinct Characters
427. Subarray Sums Divisible by K
428. Online Stock Span
429. Trim a Binary Search Tree
430. Swapping Nodes in a Linked List
431. Most Common Word
432. N-ary Tree Preorder Traversal
433. Longest Substring with At Least K Repeating Characters
434. Arithmetic Slices
435. Count Odd Numbers in an Interval Range
436. Reverse Pairs
437. Find Duplicate Subtrees
438. Buddy Strings
439. The K Weakest Rows in a Matrix
440. Build Array from Permutation
441. Number of Connected Components in an Undirected Graph
442. Flipping an Image
443. Wiggle Subsequence
444. To Lower Case
445. Meeting Rooms
446. Palindrome Pairs
447. Inorder Successor in BST
448. Critical Connections in a Network
449. Convert BST to Greater Tree
450. Subtract the Product and Sum of Digits of an Integer
451. Design Circular Queue
452. Array Partition I
453. Bitwise AND of Numbers Range
454. Number of Matching Subsequences
455. N-Queens II
456. Reorder Data in Log Files
457. Minimum Deletions to Make Character Frequencies Unique
458. Predict the Winner
459. Find Mode in Binary Search Tree
460. Largest Divisible Subset
461. Delete Operation for Two Strings
462. Robot Return to Origin
463. Find if Path Exists in Graph
464. Pairs of Songs With Total Durations Divisible by 60
465. Minimum Operations to Reduce X to Zero
466. Path With Minimum Effort
467. My Calendar I
468. Find Largest Value in Each Tree Row
469. Delete the Middle Node of a Linked List
470. Maximum Profit in Job Scheduling
471. Nim Game
472. Letter Case Permutation
473. Search Suggestions System
474. Check If It Is a Straight Line
475. Ones and Zeroes
476. Snapshot Array
477. Deepest Leaves Sum
478. Cousins in Binary Tree
479. Add to Array-Form of Integer
480. Min Cost to Connect All Points
481. Maximum Binary Tree
482. Find Eventual Safe States
483. Leaf-Similar Trees
484. Scramble String
485. Find the Celebrity
486. Toeplitz Matrix
487. Walls and Gates
488. Expression Add Operators
489. Assign Cookies
490. Shortest Path in a Grid with Obstacles Elimination
491. N-ary Tree Level Order Traversal
492. Replace Elements with Greatest Element on Right Side
493. Average Salary Excluding the Minimum and Maximum Salary
494. Closest Binary Search Tree Value
495. Minimum Add to Make Parentheses Valid
496. Rotate String
497. Different Ways to Add Parentheses
498. Diagonal Traverse
499. Number Complement

You might also like