the hateful leetcode playground using python3
- Yandex February 20 (fail ❌ , graphs, dp)
- German eco smart house Summer 21 (fail ❌, arrays, dp)
- Ennabl Irish insurance invoices bigdata Autumn 21 (pass ✅, greedy and number of islands dfs from leetcode)
- Sporty Group April 22 (pass ✅ , linked lists, count sort kinda problem)
- Amazon June 22 (fail ❌ , arrays, dp)
- Microsoft December 22 (fail ❌, easy string, easy array, two med/hard dp, have those here)
- French tele company January 23 (fail ❌ , two med dp, have those here)
- Yandex Oct 23, preparing for interview, they sent list of leetcode links, most popular topics, no dp
ChatGPT can explain better than a human
grind 169 good list of leetcode problems, cover mostly of topics
leetcode patterns 180 a little bit of different list of popular problems
neetcode 442 best site with codebase and the biggest list which is good pool of problems
leetcode post related to dp categories i have issue with dp, so here's list of 200 dp problems
solairerove.github.io my personal pool of problems to prepare
🍀 84 easy
🉑 198 medium
㊗️ 42 hard
total 323
- 🔢 array 59
- 🉑 735. asteroid collision
- 🍀 1491. average salary excluding the minimum and maximum salary
- 🍀 844. backspace string compare
- 🍀 859. buddy strings
- 🍀 605. can place flowers
- 🉑 11. container with most water
- 🍀 217. contains duplicate
- 🍀 2022. convert 1d array into 2d array
- ㊗️ 2444. count sub arrays with fixed bounds
- 🉑 271. encode and decode strings
- 🉑 2352. equal row and column pairs
- 🉑 2352. equal row and column pairs
- 🉑 442. find all duplicates in an array
- 🍀 448. find all numbers disappeared in an array
- 🍀 2215. find the difference of two arrays
- 🍀 1732. find the highest altitude
- 🉑 28. find the index of the first occurrence in a string
- 🍀 733. flood fill
- 🉑 18. four sum
- 🉑 49. group anagrams
- 🉑 1306. jump game III
- 🍀 1431. kids with the greatest number of candies
- 🉑 2090. k radius subarray averages
- 🉑 17. letter combinations of a phone number
- 🉑 128. longest consecutive sequence
- 🍀 409. longest palindrome
- 🉑 5. longest palindromic substring
- 🍀 169. majority elements
- 🉑 229. majority elements II
- 🍀 1572. matrix diagonal sum
- 🉑 1456. maximum number of vowels is in a substring of given length
- 🍀 252. meeting rooms
- 🉑 253. meeting rooms II
- 🉑 56. merge intervals
- 🍀 1768. merge strings alternately
- 🉑 2439. minimize maximum of array
- 🍀 268. missing number
- 🍀 896. monotonic array
- 🍀 1512. number of good pairs
- 🉑 1498. number of subsequences that satisfy the given sum condition
- 🉑 2348. number of zero filled sub arrays
- 🉑 763. partition labels
- 🉑 46. permutations
- 🉑 238. product of array except self
- 🍀 383. ransom note
- ㊗️ 301. remove invalid parentheses
- 🉑 137. single number II
- 🉑 912. sort an array
- 🉑 905. sort array by parity
- 🉑 75. sort colors
- 🉑 54. spiral matrix
- 🉑 59. spiral matrix ii
- 🍀 977. squares of a sorted array
- 🉑 443. string compression
- 🍀 228. summary ranges
- 🉑 15. tree sum
- 🍀 1. two sum
- 🉑 167. two sum II
- 🍀 242. valid anagram
- 🍀 125. valid palindrome
- ✂️ binary search 23
- 🍀 704. binary search
- 🉑 1011. capacity to ship packages within d days
- 🍀 1351. count negative numbers in a sorted matrix
- 🉑 34. find first and last position of element in sorted array
- 🉑 153. find minimum in rotated sorted array
- 🍀 744. find smallest letter greater than target
- ㊗️ 1964. find the longest valid obstacle course at each position
- 🍀 278. first bad version
- 🍀 374. guess number higher or lower
- 🉑 875. koko eating bananas
- 🍀 1539. kth missing positive number
- ㊗️ 774. minimize max distance to gas station
- ㊗️ 2448. minimum cost to make array equal
- 🉑 1870. minimum speed to arrive on time
- 🉑 2187. minimum time to complete trips
- 🉑 852. peak index in a mountain array
- 🉑 74. search a 2d matrix
- 🉑 33. search in rotated sorted array
- 🉑 81. search in rotated sorted array II
- 🍀 35. search insert position
- 🉑 540. single element in a sorted array
- ㊗️ 410. split array largest sum
- 🉑 2300. successful pairs of spells and potions
- 👬 dynamic programming 81
- 🉑 894. all possible full binary trees
- 🉑 413. arithmetic slices
- 🉑 1014. best sightseeing pair
- 🍀 121. best time to buy and sell stock
- 🉑 122. best time to buy and sell stock II
- ㊗️ 188. best time to buy and sell stock IV
- 🉑 309. best time to buy and sell stock with cooldown
- 🉑 714. best time to buy and sell stock with transaction fee
- 🍀 70. climbing stairs
- 🉑 322. coin change
- 🉑 518. coin change II
- 🉑 377. combination sum IV
- 🍀 338. counting bits
- 🉑 2466. count ways to build good strings
- 🉑 91. decode ways
- 🉑 740. delete and earn
- ㊗️ 72. edit distance
- 🉑 509. fibonacci number
- 🉑 22. generate parentheses
- 🉑 198. house robber
- 🉑 213. house robber II
- 🉑 337. house robber III
- 🉑 343. integer break
- 🍀 392. is subsequence
- ㊗️ 1345. jump game IV
- 0-1 knapsack problem
- 🉑 knight probability in chessboard
- 🉑 1027. longest arithmetic subsequence
- 🉑 1218. longest arithmetic subsequence of given difference
- 🉑 1143. longest common subsequence
- 🉑 300. longest increasing subsequence
- 🉑 516. longest palindromic subsequence
- 🉑 1314. matrix block sum
- 🉑 221. maximal square
- ㊗️ 1799. maximize score after n operations
- 🉑 1567. maximum length of subarray with positive product
- 🉑 152. maximum product subarray
- ㊗️ 1770. maximum score from performing multiplication operations
- 🉑 53. maximum subarray
- 🉑 918. maximum sum circular subarray
- ㊗️ 2218. maximum value of k coins from piles
- 🍀 746. min cost climbing stairs
- 🉑 983. minimum cost for tickets
- ㊗️ 1547. minimum cost to cut a stick
- ㊗️ 1335. minimum difficulty of a job schedule
- 🉑 931. minimum falling path sum
- ㊗️ 1312. minimum insertion steps to make a string palindrome
- ㊗️ 1553. minimum number of days to eat n oranges
- 🉑 64. minimum path sum
- 🉑 837. new 21 game
- 🍀 1137. n-th tribonacci number
- ㊗️ 2328. number of increasing paths in a grid
- 🉑 673. number of longest increasing subsequence
- ㊗️ 1444. number of ways of cutting a pizza
- ㊗️ 1639. number of ways to form a target string given a dictionary
- 🉑 474. ones and zeros
- 🉑 647. palindromic substrings
- 🉑 416. partition equal subset sum
- 🍀 118. pascal's triangle
- 🍀 119. pascal's triangle II
- 🉑 279. perfect squares
- 🉑 486. predict the winner
- ㊗️ 879. profitable schemes
- 🍀 NOT DP 303. range sum query
- 🉑 NOT DP 304. range sum query 2d immutable
- 🉑 NOT DP 307. range sum query mutable
- ㊗️ 1402. reducing dishes
- ㊗️ 1416. restore the array
- ㊗️ 87. scramble string
- 🉑 2140. solving questions with brainpower
- 🉑 1140. stone game ii
- ㊗️ 1406. stone game iii
- 🉑 494. target sum
- ㊗️ 42. trapping rain water
- 🉑 120. triangle
- 🉑 264. ugly number II
- 🉑 1035. uncrossed lines
- 🉑 96. unique binary search trees
- 🉑 62. unique paths
- 🉑 63. unique paths ii
- 🉑 376. wiggle subsequence
- 🉑 139. word break
- 🎡 graphs 25
- ㊗️ 1697. checking existence of edge length limited paths
- 🉑 133. clone graph
- 🉑 2316. count unreachable pairs of nodes in an undirected graph
- 🉑 207. course schedule
- 🉑 2101. detonate the maximum bombs
- 🉑 399. evaluate division
- 🉑 785. is graph bipartite
- ㊗️ 1857. largest color value in a directed graph
- ㊗️ 2360. longest cycle in a graph
- 🉑 2477. minimum fuel cost to report to the capital
- 🉑 1557. minimum number of vertices to reach all nodes
- 🉑 2492. minimum score of a path between two cities
- 🉑 1254. number of closed islands
- 🉑 323. number of connected components in an undirected graph
- 🉑 1020. number of enclaves
- 🉑 NOT GRAPH 200. number of islands
- 🉑 1319. number of operations to make network connected
- 🉑 1514. path with maximum probability
- ㊗️ 332. reconstruct itinerary
- ㊗️ 1579. remove max number of edges to keep graph fully traversable
- 🉑 1466. reorder routes to make all path lead to the city zero
- 🉑 934. shortest bridge
- 🉑 1091. shortest path in binary matrix
- 🉑 1129. shortest path with alternating colors using bfs
- ㊗️ 839. similar string groups
🅿️ greedy 12- 🉑 881. boats to save people
- ㊗️ 135. candy
- 🍀 1603. design parking system
- 🉑 649. dota 2 senate
- 🉑 1775. equal sum arrays with minimum number of operations (M)
- 🉑 55. jump game
- 🉑 1306. jump game II
- 🉑 1846. maximum element after decreasing and rearranging
- 🉑 2178. maximum split of positive even integers
- 🉑 1647. minimum deletions to make character frequencies unique
- 🉑 435. non overlapping intervals
- 🉑 2405. optimal partition of string
- #️⃣ hash table 5
- 🚢 heap 13
- 🉑 373. find k pairs with smallest sums
- ㊗️ 295. find median from data stream
- 🉑 1985. find the kth largest integer in the array
- ㊗️ 502. ipo
- 🉑 215. kth largest element in an array
- 🍀 703. kth largest element in a stream
- 🍀 1046. last stone weight
- 🉑 2542. maximum subsequence score
- ㊗️ 1675. minimize deviation in array
- 🉑 2336. smallest number infinite set
- 🉑 347. top k frequent elements
- 🉑 692. top k frequent words
- 🉑 2462. total cost to hire k workers
- 🔗 linked list 44
- 🉑 2. add two numbers
- 🉑 445. add two numbers II
- 🉑 138. copy list with random pointer
- 🍀 1474. delete n nodes after m nodes of a linked list
- 🉑 237. delete node in a linked list
- 🉑 2095. delete the middle node of a linked list
- 🉑 1472. design browser history
- 🉑 641. design circular deque
- 🉑 622. design circular queue
- 🉑 707. design linked list
- 🉑 355. design twitter
- 🉑 287. find the duplicate number
- 🉑 430. flatten a multilevel doubly linked list
- 🉑 708. insert into a sorted circular linked list
- 🉑 147. insertion sort list
- 🍀 160. intersection of two linked lists
- ㊗️ 460. lfu cache
- 🍀 141. linked list cycle
- 🉑 142. linked list cycle II
- 🉑 382. linked list random node
- 🉑 146. lru cache
- 🉑 2130. maximum twin sum of a linked list
- ㊗️ 23. merge k sorted lists
- 🍀 21. merge two sorted lists
- 🍀 876. middle of the linked list
- 🉑 328. odd even linked list
- 🍀 234. palindrome linked list
- 🉑 86. partition list
- 🉑 1836. remove duplicates from an unsorted linked list
- 🍀 83. remove duplicates from sorted list
- 🉑 82. remove duplicates from sorted list II
- 🍀 203. remove linked list elements
- 🉑 2487. remove nodes from linked list
- 🉑 19. remove nth node from end of list
- 🉑 143. reorder list
- 🍀 206. reverse linked list
- 🉑 92. reverse linked list II
- 🉑 2074. reverse nodes in even length groups
- ㊗️ 25. reverse nodes in k group
- 🉑 61. rotate list
- 🉑 148. sort list
- 🉑 725. split linked list in parts
- 🉑 24. swap nodes in pairs
- 🉑 1721. swapping nodes in a linked list
- 🎓 math 13
- 🍀 67. add binary
- 🍀 258. add digits
- 🍀 989. add to array form of integer
- 🉑 319. bulb switcher
- 🍀 1502. can make arithmetic progression from sequence
- 🍀 1232. check if it is a straight line
- 🍀 1523. count odd numbers in an interval range
- 🉑 1318. minimum flips to make a or b equal to c
- 🉑 50. pow(x, n)
- 🍀 13. roman to integer
- 🍀 1822. sign of the product of an array
- 🍀 136. single number
- ㊗️ 483. smallest good base
- 🚠 sliding window 7
- 🚰 stack 7
- 🌳 trees 31
- 🉑 863. all nodes distance k in binary tree
- 🍀 637. average of levels in binary tree
- 🍀 110. balanced binary tree
- 🍀 94. binary tree inorder traversal
- 🉑 103. binary tree zigzag level order traversal
- 🉑 958. check completeness of a binary tree
- 🉑 106. construct binary tree from inorder and postorder traversal
- 🉑 427. construct quad tree
- 🉑 109. convert sorted list to binary search tree
- 🍀 543. diameter of binary tree
- 🉑 652. find duplicates subtrees
- 🍀 226. invert binary tree
- 🍀 872. leaf similar trees
- 🉑 1372. longest zig zag path in a binary tree
- 🉑 235. lowest common ancestor of a binary search tree
- 🉑 236. lowest common ancestor of a binary tree
- 🍀 104. maximum depth of binary tree
- 🉑 1161. maximum level sum of a binary tree
- 🉑 662. maximum width of binary tree
- 🍀 617. merge two binary trees
- 🍀 530. minimum absolute difference in bst
- 🍀 111. minimum depth of binary tree
- 🍀 783. minimum distance between bst nodes
- ㊗️ 1569. number of ways to reorder array to get same bst
- 🍀 112. path sum
- 🉑 113. path sum II
- 🍀 872. range sum of BST
- 🍀 100. same tree
- 🍀 572. subtree of another tree
- 🉑 129. sum root to leaf numbers
- 🍀 101. symmetric tree
- 🔱 tries 3