This is a repo to store my leetcode solutions but I went a bit Schizo with it and it pulls the leetcode solutions, creates READMEs with the problema and solution and then converts it into an Mkdocs website hosted on GitHub Pages.
If you want to use this project follow the steps here.
- Uses the
joshcai/leetcode-sync
GitHub action to will the problems and solutions from leetcode into the/Solutions
folder. - Uses the Script
update_project_readme.py
to compile all of the completed problems into a table in 2 readme files that can be used for GitHub and the Mkdocs site - Uses the Script
update_readmes.py.py
to create README files from the problems and solutions and embed their difficulty, tags and the solution's statistics. - Uses Mkdocs to convert the READMEs created in
Step 3
to a website. - The website is then deployed using the GitHub Pages deploy action.
Problem | Solution | Difficulty | Tags |
---|---|---|---|
1. Two Sum | π | Array, Hash Table | |
2. Add Two Numbers | π | Linked List, Math, Recursion | |
3. Longest Substring Without Repeating Characters | π | Hash Table, String, Sliding Window | |
4. Median Of Two Sorted Arrays | π | Array, Binary Search, Divide and Conquer | |
5. Longest Palindromic Substring | π | Two Pointers, String, Dynamic Programming | |
6. Zigzag Conversion | π | String | |
7. Reverse Integer | π | Math | |
8. String To Integer Atoi | π | String | |
9. Palindrome Number | π | Math | |
10. Regular Expression Matching | π | String, Dynamic Programming, Recursion | |
11. Container With Most Water | π | Array, Two Pointers, Greedy | |
12. Integer To Roman | π | Hash Table, Math, String | |
13. Roman To Integer | π | Hash Table, Math, String | |
14. Longest Common Prefix | π | Array, String, Trie | |
15. 3sum | π | Array, Two Pointers, Sorting | |
16. 3sum Closest | π | Array, Two Pointers, Sorting | |
17. Letter Combinations Of A Phone Number | π | Hash Table, String, Backtracking | |
18. 4sum | π | Array, Two Pointers, Sorting | |
19. Remove Nth Node From End Of List | π | Linked List, Two Pointers | |
20. Valid Parentheses | π | String, Stack | |
21. Merge Two Sorted Lists | π | Linked List, Recursion | |
22. Generate Parentheses | π | String, Dynamic Programming, Backtracking | |
23. Merge K Sorted Lists | π | Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort | |
24. Swap Nodes In Pairs | π | Linked List, Recursion | |
25. Reverse Nodes In K Group | π | Linked List, Recursion | |
26. Remove Duplicates From Sorted Array | π | Array, Two Pointers | |
27. Remove Element | π | Array, Two Pointers | |
28. Find The Index Of The First Occurrence In A String | π | Two Pointers, String, String Matching | |
29. Divide Two Integers | π | Math, Bit Manipulation | |
30. Substring With Concatenation Of All Words | π | Hash Table, String, Sliding Window | |
31. Next Permutation | π | Array, Two Pointers | |
32. Longest Valid Parentheses | π | String, Dynamic Programming, Stack | |
33. Search In Rotated Sorted Array | π | Array, Binary Search | |
34. Find First And Last Position Of Element In Sorted Array | π | Array, Binary Search | |
35. Search Insert Position | π | Array, Binary Search | |
36. Valid Sudoku | π | Array, Hash Table, Matrix | |
37. Sudoku Solver | π | Array, Hash Table, Backtracking, Matrix | |
38. Count And Say | π | String | |
39. Combination Sum | π | Array, Backtracking | |
40. Combination Sum II | π | Array, Backtracking | |
41. First Missing Positive | π | Array, Hash Table | |
42. Trapping Rain Water | π | Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack | |
43. Multiply Strings | π | Math, String, Simulation | |
44. Wildcard Matching | π | String, Dynamic Programming, Greedy, Recursion | |
45. Jump Game II | π | Array, Dynamic Programming, Greedy | |
46. Permutations | π | Array, Backtracking | |
47. Permutations II | π | Array, Backtracking, Sorting | |
48. Rotate Image | π | Array, Math, Matrix | |
49. Group Anagrams | π | Array, Hash Table, String, Sorting | |
50. Powx N | π | Math, Recursion | |
51. N Queens | π | Array, Backtracking | |
52. N Queens II | π | Backtracking | |
54. Spiral Matrix | π | Array, Matrix, Simulation | |
55. Jump Game | π | Array, Dynamic Programming, Greedy | |
56. Merge Intervals | π | Array, Sorting | |
57. Insert Interval | π | Array | |
58. Length Of Last Word | π | String | |
59. Spiral Matrix II | π | Array, Matrix, Simulation | |
62. Unique Paths | π | Math, Dynamic Programming, Combinatorics | |
63. Unique Paths II | π | Array, Dynamic Programming, Matrix | |
64. Minimum Path Sum | π | Array, Dynamic Programming, Matrix | |
66. Plus One | π | Array, Math | |
67. Add Binary | π | Math, String, Bit Manipulation, Simulation | |
68. Text Justification | π | Array, String, Simulation | |
69. Sqrtx | π | Math, Binary Search | |
70. Climbing Stairs | π | Math, Dynamic Programming, Memoization | |
72. Edit Distance | π | String, Dynamic Programming | |
73. Set Matrix Zeroes | π | Array, Hash Table, Matrix | |
74. Search A 2d Matrix | π | Array, Binary Search, Matrix | |
76. Minimum Window Substring | π | Hash Table, String, Sliding Window | |
78. Subsets | π | Array, Backtracking, Bit Manipulation | |
79. Word Search | π | Array, String, Backtracking, Depth-First Search, Matrix | |
80. Remove Duplicates From Sorted Array II | π | Array, Two Pointers | |
81. Search In Rotated Sorted Array II | π | Array, Binary Search | |
83. Remove Duplicates From Sorted List | π | Linked List | |
84. Largest Rectangle In Histogram | π | Array, Stack, Monotonic Stack | |
88. Merge Sorted Array | π | Array, Two Pointers, Sorting | |
89. Gray Code | π | Math, Backtracking, Bit Manipulation | |
90. Subsets II | π | Array, Backtracking, Bit Manipulation | |
94. Binary Tree Inorder Traversal | π | Stack, Tree, Depth-First Search, Binary Tree | |
96. Unique Binary Search Trees | π | Math, Dynamic Programming, Tree, Binary Search Tree, Binary Tree | |
98. Validate Binary Search Tree | π | Tree, Depth-First Search, Binary Search Tree, Binary Tree | |
99. Recover Binary Search Tree | π | Tree, Depth-First Search, Binary Search Tree, Binary Tree | |
100. Same Tree | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
101. Symmetric Tree | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
104. Maximum Depth Of Binary Tree | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
105. Construct Binary Tree From Preorder And Inorder Traversal | π | Array, Hash Table, Divide and Conquer, Tree, Binary Tree | |
106. Construct Binary Tree From Inorder And Postorder Traversal | π | Array, Hash Table, Divide and Conquer, Tree, Binary Tree | |
108. Convert Sorted Array To Binary Search Tree | π | Array, Divide and Conquer, Tree, Binary Search Tree, Binary Tree | |
110. Balanced Binary Tree | π | Tree, Depth-First Search, Binary Tree | |
111. Minimum Depth Of Binary Tree | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
112. Path Sum | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
113. Path Sum II | π | Backtracking, Tree, Depth-First Search, Binary Tree | |
114. Flatten Binary Tree To Linked List | π | Linked List, Stack, Tree, Depth-First Search, Binary Tree | |
115. Distinct Subsequences | π | String, Dynamic Programming | |
116. Populating Next Right Pointers In Each Node | π | Linked List, Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
117. Populating Next Right Pointers In Each Node II | π | Linked List, Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
118. Pascals Triangle | π | Array, Dynamic Programming | |
119. Pascals Triangle II | π | Array, Dynamic Programming | |
120. Triangle | π | Array, Dynamic Programming | |
121. Best Time To Buy And Sell Stock | π | Array, Dynamic Programming | |
122. Best Time To Buy And Sell Stock II | π | Array, Dynamic Programming, Greedy | |
123. Best Time To Buy And Sell Stock III | π | Array, Dynamic Programming | |
129. Sum Root To Leaf Numbers | π | Tree, Depth-First Search, Binary Tree | |
130. Surrounded Regions | π | Array, Depth-First Search, Breadth-First Search, Union Find, Matrix | |
133. Clone Graph | π | Hash Table, Depth-First Search, Breadth-First Search, Graph | |
134. Gas Station | π | Array, Greedy | |
135. Candy | π | Array, Greedy | |
136. Single Number | π | Array, Bit Manipulation | |
137. Single Number II | π | Array, Bit Manipulation | |
139. Word Break | π | Array, Hash Table, String, Dynamic Programming, Trie, Memoization | |
141. Linked List Cycle | π | Hash Table, Linked List, Two Pointers | |
144. Binary Tree Preorder Traversal | π | Stack, Tree, Depth-First Search, Binary Tree | |
145. Binary Tree Postorder Traversal | π | Stack, Tree, Depth-First Search, Binary Tree | |
146. Lru Cache | π | Hash Table, Linked List, Design, Doubly-Linked List | |
153. Find Minimum In Rotated Sorted Array | π | Array, Binary Search | |
154. Find Minimum In Rotated Sorted Array II | π | Array, Binary Search | |
162. Find Peak Element | π | Array, Binary Search | |
165. Compare Version Numbers | π | Two Pointers, String | |
166. Fraction To Recurring Decimal | π | Hash Table, Math, String | |
167. Two Sum II Input Array Is Sorted | π | Array, Two Pointers, Binary Search | |
169. Majority Element | π | Array, Hash Table, Divide and Conquer, Sorting, Counting | |
175. Combine Two Tables | π | Database | |
176. Second Highest Salary | π | Database | |
177. Nth Highest Salary | π | Database | |
178. Rank Scores | π | Database | |
179. Largest Number | π | Array, String, Greedy, Sorting | |
181. Employees Earning More Than Their Managers | π | Database | |
182. Duplicate Emails | π | Database | |
183. Customers Who Never Order | π | Database | |
184. Department Highest Salary | π | Database | |
185. Department Top Three Salaries | π | Database | |
187. Repeated Dna Sequences | π | Hash Table, String, Bit Manipulation, Sliding Window, Rolling Hash, Hash Function | |
188. Best Time To Buy And Sell Stock IV | π | Array, Dynamic Programming | |
190. Reverse Bits | π | Divide and Conquer, Bit Manipulation | |
191. Number Of 1 Bits | π | Divide and Conquer, Bit Manipulation | |
196. Delete Duplicate Emails | π | Database | |
197. Rising Temperature | π | Database | |
198. House Robber | π | Array, Dynamic Programming | |
199. Binary Tree Right Side View | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
200. Number Of Islands | π | Array, Depth-First Search, Breadth-First Search, Union Find, Matrix | |
201. Bitwise And Of Numbers Range | π | Bit Manipulation | |
203. Remove Linked List Elements | π | Linked List, Recursion | |
206. Reverse Linked List | π | Linked List, Recursion | |
207. Course Schedule | π | Depth-First Search, Breadth-First Search, Graph, Topological Sort | |
209. Minimum Size Subarray Sum | π | Array, Binary Search, Sliding Window, Prefix Sum | |
210. Course Schedule II | π | Depth-First Search, Breadth-First Search, Graph, Topological Sort | |
215. Kth Largest Element In An Array | π | Array, Divide and Conquer, Sorting, Heap (Priority Queue), Quickselect | |
217. Contains Duplicate | π | Array, Hash Table, Sorting | |
218. The Skyline Problem | π | Array, Divide and Conquer, Binary Indexed Tree, Segment Tree, Line Sweep, Sorting, Heap (Priority Queue), Ordered Set | |
221. Maximal Square | π | Array, Dynamic Programming, Matrix | |
222. Count Complete Tree Nodes | π | Binary Search, Bit Manipulation, Tree, Binary Tree | |
226. Invert Binary Tree | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
231. Power Of Two | π | Math, Bit Manipulation, Recursion | |
234. Palindrome Linked List | π | Linked List, Two Pointers, Stack, Recursion | |
237. Delete Node In A Linked List | π | Linked List | |
238. Product Of Array Except Self | π | Array, Prefix Sum | |
239. Sliding Window Maximum | π | Array, Queue, Sliding Window, Heap (Priority Queue), Monotonic Queue | |
240. Search A 2d Matrix II | π | Array, Binary Search, Divide and Conquer, Matrix | |
257. Binary Tree Paths | π | String, Backtracking, Tree, Depth-First Search, Binary Tree | |
260. Single Number III | π | Array, Bit Manipulation | |
264. Ugly Number II | π | Hash Table, Math, Dynamic Programming, Heap (Priority Queue) | |
268. Missing Number | π | Array, Hash Table, Math, Binary Search, Bit Manipulation, Sorting | |
275. H Index II | π | Array, Binary Search | |
278. First Bad Version | π | Binary Search, Interactive | |
283. Move Zeroes | π | Array, Two Pointers | |
287. Find The Duplicate Number | π | Array, Two Pointers, Binary Search, Bit Manipulation | |
295. Find Median From Data Stream | π | Two Pointers, Design, Sorting, Heap (Priority Queue), Data Stream | |
300. Longest Increasing Subsequence | π | Array, Binary Search, Dynamic Programming | |
303. Range Sum Query Immutable | π | Array, Design, Prefix Sum | |
309. Best Time To Buy And Sell Stock With Cooldown | π | Array, Dynamic Programming | |
315. Count Of Smaller Numbers After Self | π | Array, Binary Search, Divide and Conquer, Binary Indexed Tree, Segment Tree, Merge Sort, Ordered Set | |
316. Remove Duplicate Letters | π | String, Stack, Greedy, Monotonic Stack | |
321. Create Maximum Number | π | Array, Two Pointers, Stack, Greedy, Monotonic Stack | |
324. Wiggle Sort II | π | Array, Divide and Conquer, Greedy, Sorting, Quickselect | |
326. Power Of Three | π | Math, Recursion | |
327. Count Of Range Sum | π | Array, Binary Search, Divide and Conquer, Binary Indexed Tree, Segment Tree, Merge Sort, Ordered Set | |
330. Patching Array | π | Array, Greedy | |
334. Increasing Triplet Subsequence | π | Array, Greedy | |
338. Counting Bits | π | Dynamic Programming, Bit Manipulation | |
342. Power Of Four | π | Math, Bit Manipulation, Recursion | |
347. Top K Frequent Elements | π | Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect | |
349. Intersection Of Two Arrays | π | Array, Hash Table, Two Pointers, Binary Search, Sorting | |
350. Intersection Of Two Arrays II | π | Array, Hash Table, Two Pointers, Binary Search, Sorting | |
352. Data Stream As Disjoint Intervals | π | Binary Search, Design, Ordered Set | |
354. Russian Doll Envelopes | π | Array, Binary Search, Dynamic Programming, Sorting | |
355. Design Twitter | π | Hash Table, Linked List, Design, Heap (Priority Queue) | |
363. Max Sum Of Rectangle No Larger Than K | π | Array, Binary Search, Matrix, Prefix Sum, Ordered Set | |
367. Valid Perfect Square | π | Math, Binary Search | |
371. Sum Of Two Integers | π | Math, Bit Manipulation | |
373. Find K Pairs With Smallest Sums | π | Array, Heap (Priority Queue) | |
374. Guess Number Higher Or Lower | π | Binary Search, Interactive | |
376. Wiggle Subsequence | π | Array, Dynamic Programming, Greedy | |
378. Kth Smallest Element In A Sorted Matrix | π | Array, Binary Search, Sorting, Heap (Priority Queue), Matrix | |
389. Find The Difference | π | Hash Table, String, Bit Manipulation, Sorting | |
392. Is Subsequence | π | Two Pointers, String, Dynamic Programming | |
397. Integer Replacement | π | Dynamic Programming, Greedy, Bit Manipulation, Memoization | |
400. Nth Digit | π | Math, Binary Search | |
401. Binary Watch | π | Backtracking, Bit Manipulation | |
402. Remove K Digits | π | String, Stack, Greedy, Monotonic Stack | |
404. Sum Of Left Leaves | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
405. Convert A Number To Hexadecimal | π | Math, String, Bit Manipulation | |
407. Trapping Rain Water II | π | Array, Breadth-First Search, Heap (Priority Queue), Matrix | |
409. Longest Palindrome | π | Hash Table, String, Greedy | |
410. Split Array Largest Sum | π | Array, Binary Search, Dynamic Programming, Greedy, Prefix Sum | |
412. Fizz Buzz | π | Math, String, Simulation | |
414. Third Maximum Number | π | Array, Sorting | |
417. Pacific Atlantic Water Flow | π | Array, Depth-First Search, Breadth-First Search, Matrix | |
421. Maximum Xor Of Two Numbers In An Array | π | Array, Hash Table, Bit Manipulation, Trie | |
434. Number Of Segments In A String | π | String | |
436. Find Right Interval | π | Array, Binary Search, Sorting | |
441. Arranging Coins | π | Math, Binary Search | |
442. Find All Duplicates In An Array | π | Array, Hash Table | |
448. Find All Numbers Disappeared In An Array | π | Array, Hash Table | |
451. Sort Characters By Frequency | π | Hash Table, String, Sorting, Heap (Priority Queue), Bucket Sort, Counting | |
455. Assign Cookies | π | Array, Two Pointers, Greedy, Sorting | |
456. 132 Pattern | π | Array, Binary Search, Stack, Monotonic Stack, Ordered Set | |
459. Repeated Substring Pattern | π | String, String Matching | |
461. Hamming Distance | π | Bit Manipulation | |
463. Island Perimeter | π | Array, Depth-First Search, Breadth-First Search, Matrix | |
464. Can I Win | π | Math, Dynamic Programming, Bit Manipulation, Memoization, Game Theory, Bitmask | |
473. Matchsticks To Square | π | Array, Dynamic Programming, Backtracking, Bit Manipulation, Bitmask | |
476. Number Complement | π | Bit Manipulation | |
477. Total Hamming Distance | π | Array, Math, Bit Manipulation | |
482. License Key Formatting | π | String | |
485. Max Consecutive Ones | π | Array | |
491. Non Decreasing Subsequences | π | Array, Hash Table, Backtracking, Bit Manipulation | |
492. Construct The Rectangle | π | Math | |
495. Teemo Attacking | π | Array, Simulation | |
496. Next Greater Element I | π | Array, Hash Table, Stack, Monotonic Stack | |
498. Diagonal Traverse | π | Array, Matrix, Simulation | |
500. Keyboard Row | π | Array, Hash Table, String | |
501. Find Mode In Binary Search Tree | π | Tree, Depth-First Search, Binary Search Tree, Binary Tree | |
502. Ipo | π | Array, Greedy, Sorting, Heap (Priority Queue) | |
504. Base 7 | π | Math, String | |
506. Relative Ranks | π | Array, Sorting, Heap (Priority Queue) | |
507. Perfect Number | π | Math | |
516. Longest Palindromic Subsequence | π | String, Dynamic Programming | |
520. Detect Capital | π | String | |
521. Longest Uncommon Subsequence I | π | String | |
530. Minimum Absolute Difference In Bst | π | Tree, Depth-First Search, Breadth-First Search, Binary Search Tree, Binary Tree | |
541. Reverse String II | π | Two Pointers, String | |
543. Diameter Of Binary Tree | π | Tree, Depth-First Search, Binary Tree | |
551. Student Attendance Record I | π | String | |
557. Reverse Words In A String III | π | Two Pointers, String | |
561. Array Partition | π | Array, Greedy, Sorting, Counting Sort | |
563. Binary Tree Tilt | π | Tree, Depth-First Search, Binary Tree | |
566. Reshape The Matrix | π | Array, Matrix, Simulation | |
567. Permutation In String | π | Hash Table, Two Pointers, String, Sliding Window | |
570. Managers With At Least 5 Direct Reports | π | Database | |
572. Subtree Of Another Tree | π | Tree, Depth-First Search, String Matching, Binary Tree, Hash Function | |
575. Distribute Candies | π | Array, Hash Table | |
577. Employee Bonus | π | Database | |
584. Find Customer Referee | π | Database | |
586. Customer Placing The Largest Number Of Orders | π | Database | |
594. Longest Harmonious Subsequence | π | Array, Hash Table, Sliding Window, Sorting, Counting | |
595. Big Countries | π | Database | |
596. Classes With At Least 5 Students | π | Database | |
598. Range Addition II | π | Array, Math | |
599. Minimum Index Sum Of Two Lists | π | Array, Hash Table, String | |
601. Human Traffic Of Stadium | π | Database | |
602. Friend Requests II Who Has The Most Friends | π | Database | |
605. Can Place Flowers | π | Array, Greedy | |
607. Sales Person | π | Database | |
608. Tree Node | π | Database | |
610. Triangle Judgement | π | Database | |
611. Valid Triangle Number | π | Array, Two Pointers, Binary Search, Greedy, Sorting | |
617. Merge Two Binary Trees | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
619. Biggest Single Number | π | Database | |
620. Not Boring Movies | π | Database | |
621. Task Scheduler | π | Array, Hash Table, Greedy, Sorting, Heap (Priority Queue), Counting | |
626. Exchange Seats | π | Database | |
627. Swap Salary | π | Database | |
628. Maximum Product Of Three Numbers | π | Array, Math, Sorting | |
637. Average Of Levels In Binary Tree | π | Tree, Depth-First Search, Breadth-First Search, Binary Tree | |
643. Maximum Average Subarray I | π | Array, Sliding Window | |
645. Set Mismatch | π | Array, Hash Table, Bit Manipulation, Sorting | |
646. Maximum Length Of Pair Chain | π | Array, Dynamic Programming, Greedy, Sorting | |
653. Two Sum IV Input Is A Bst | π | Hash Table, Two Pointers, Tree, Depth-First Search, Breadth-First Search, Binary Search Tree, Binary Tree | |
657. Robot Return To Origin | π | String, Simulation | |
658. Find K Closest Elements | π | Array, Two Pointers, Binary Search, Sliding Window, Sorting, Heap (Priority Queue) | |
659. Split Array Into Consecutive Subsequences | π | Array, Hash Table, Greedy, Heap (Priority Queue) | |
661. Image Smoother | π | Array, Matrix | |
671. Second Minimum Node In A Binary Tree | π | Tree, Depth-First Search, Binary Tree | |
673. Number Of Longest Increasing Subsequence | π | Array, Dynamic Programming, Binary Indexed Tree, Segment Tree | |
674. Longest Continuous Increasing Subsequence | π | Array | |
679. 24 Game | π | Array, Math, Backtracking | |
680. Valid Palindrome II | π | Two Pointers, String, Greedy | |
682. Baseball Game | π | Array, Stack, Simulation | |
692. Top K Frequent Words | π | Array, Hash Table, String, Trie, Sorting, Heap (Priority Queue), Bucket Sort, Counting | |
693. Binary Number With Alternating Bits | π | Bit Manipulation | |
696. Count Binary Substrings | π | Two Pointers, String | |
697. Degree Of An Array | π | Array, Hash Table | |
712. Minimum Ascii Delete Sum For Two Strings | π | String, Dynamic Programming | |
714. Best Time To Buy And Sell Stock With Transaction Fee | π | Array, Dynamic Programming, Greedy | |
717. 1 Bit And 2 Bit Characters | π | Array | |
724. Find Pivot Index | π | Array, Prefix Sum | |
728. Self Dividing Numbers | π | Math | |
733. Flood Fill | π | Array, Depth-First Search, Breadth-First Search, Matrix | |
740. Delete And Earn | π | Array, Hash Table, Dynamic Programming | |
742. To Lower Case | π | String | |
744. Network Delay Time | π | Depth-First Search, Breadth-First Search, Graph, Heap (Priority Queue), Shortest Path | |
745. Find Smallest Letter Greater Than Target | π | Array, Binary Search | |
747. Min Cost Climbing Stairs | π | Array, Dynamic Programming | |
748. Largest Number At Least Twice Of Others | π | Array, Sorting | |
749. Shortest Completing Word | π | Array, Hash Table, String | |
767. Prime Number Of Set Bits In Binary Representation | π | Math, Bit Manipulation | |
774. Maximum Depth Of N Ary Tree | π | Tree, Depth-First Search, Breadth-First Search | |
775. N Ary Tree Preorder Traversal | π | Stack, Tree, Depth-First Search | |
776. N Ary Tree Postorder Traversal | π | Stack, Tree, Depth-First Search | |
777. Toeplitz Matrix | π | Array, Matrix | |
778. Reorganize String | π | Hash Table, String, Greedy, Sorting, Heap (Priority Queue), Counting | |
782. Jewels And Stones | π | Hash Table, String | |
783. Search In A Binary Search Tree | π | Tree, Binary Search Tree, Binary Tree | |
784. Insert Into A Binary Search Tree | π | Tree, Binary Search Tree, Binary Tree | |
789. Kth Largest Element In A Stream | π | Tree, Design, Binary Search Tree, Heap (Priority Queue), Binary Tree, Data Stream | |
792. Binary Search | π | Array, Binary Search | |
794. Swim In Rising Water | π | Array, Binary Search, Depth-First Search, Breadth-First Search, Union Find, Heap (Priority Queue), Matrix | |
799. Minimum Distance Between Bst Nodes | π | Tree, Depth-First Search, Breadth-First Search, Binary Search Tree, Binary Tree | |
802. K Th Smallest Prime Fraction | π | Array, Two Pointers, Binary Search, Sorting, Heap (Priority Queue) | |
803. Cheapest Flights Within K Stops | π | Dynamic Programming, Depth-First Search, Breadth-First Search, Graph, Heap (Priority Queue), Shortest Path | |
812. Rotate String | π | String, String Matching | |
816. Design Hashset | π | Array, Hash Table, Linked List, Design, Hash Function | |
817. Design Hashmap | π | Array, Hash Table, Linked List, Design, Hash Function | |
822. Unique Morse Code Words | π | Array, Hash Table, String | |
824. Number Of Lines To Write String | π | Array, String | |
826. Soup Servings | π | Math, Dynamic Programming, Probability and Statistics | |
829. Subdomain Visit Count | π | Array, Hash Table, String, Counting | |
830. Largest Triangle Area | π | Array, Math, Geometry | |
837. Most Common Word | π | Array, Hash Table, String, Counting | |
867. New 21 Game | π | Math, Dynamic Programming, Sliding Window, Probability and Statistics | |
874. Backspace String Compare | π | Two Pointers, String, Stack, Simulation | |
879. Maximize Distance To Closest Person | π | Array | |
882. Peak Index In A Mountain Array | π | Array, Binary Search | |
900. Reordered Power Of 2 | π | Hash Table, Math, Sorting, Counting, Enumeration | |
908. Middle Of The Linked List | π | Linked List, Two Pointers | |
940. Fruit Into Baskets | π | Array, Hash Table, Sliding Window | |
967. Minimum Falling Path Sum | π | Array, Dynamic Programming, Matrix | |
1006. Vowel Spellchecker | π | Array, Hash Table, String | |
1013. Fibonacci Number | π | Math, Dynamic Programming, Recursion, Memoization | |
1018. Largest Perimeter Triangle | π | Array, Math, Greedy, Sorting | |
1019. Squares Of A Sorted Array | π | Array, Two Pointers, Sorting | |
1054. Complement Of Base 10 Integer | π | Bit Manipulation | |
1087. Longest Arithmetic Subsequence | π | Array, Hash Table, Binary Search, Dynamic Programming | |
1105. Uncrossed Lines | π | Array, Dynamic Programming | |
1111. Minimum Score Triangulation Of Polygon | π | Array, Dynamic Programming | |
1135. Customers Who Bought All Products | π | Database | |
1153. Product Sales Analysis I | π | Database | |
1179. Game Play Analysis I | π | Database | |
1182. Game Play Analysis IV | π | Database | |
1236. N Th Tribonacci Number | π | Math, Dynamic Programming, Memoization | |
1245. User Activity For The Past 30 Days I | π | Database | |
1250. Longest Common Subsequence | π | String, Dynamic Programming | |
1258. Article Views I | π | Database | |
1264. Maximum Number Of Words You Can Type | π | Hash Table, String | |
1330. Longest Arithmetic Subsequence Of Given Difference | π | Array, Hash Table, Dynamic Programming | |
1353. Find Resultant Array After Removing Anagrams | π | Array, Hash Table, String, Sorting | |
1364. Tuple With Same Product | π | Array, Hash Table, Counting | |
1370. Count Number Of Nice Subarrays | π | Array, Hash Table, Math, Sliding Window, Prefix Sum | |
1390. Average Selling Price | π | Database | |
1402. Count Square Submatrices With All Ones | π | Array, Dynamic Programming, Matrix | |
1407. Group The People Given The Group Size They Belong To | π | Array, Hash Table, Greedy | |
1411. Convert Binary Number In A Linked List To Integer | π | Linked List, Math | |
1415. Students And Examinations | π | Database | |
1421. Find Numbers With Even Number Of Digits | π | Array, Math | |
1423. Maximum Number Of Occurrences Of A Substring | π | Hash Table, String, Sliding Window | |
1426. Find N Unique Integers Sum Up To Zero | π | Array, Math | |
1437. Minimum Insertion Steps To Make A String Palindrome | π | String, Dynamic Programming | |
1440. Convert Integer To The Sum Of Two No Zero Integers | π | Math | |
1448. Maximum 69 Number | π | Math, Greedy | |
1509. Replace Employee Id With The Unique Identifier | π | Database | |
1582. Design Browser History | π | Array, Linked List, Stack, Design, Doubly-Linked List, Data Stream | |
1586. Longest Subarray Of 1s After Deleting One Element | π | Array, Dynamic Programming, Sliding Window | |
1612. Avoid Flood In The City | π | Array, Hash Table, Binary Search, Greedy, Heap (Priority Queue) | |
1619. Path Crossing | π | Hash Table, String | |
1628. Count Submatrices With All Ones | π | Array, Dynamic Programming, Stack, Matrix, Monotonic Stack | |
1642. Water Bottles | π | Math, Simulation | |
1675. Magnetic Force Between Two Balls | π | Array, Binary Search, Sorting | |
1765. Merge In Between Linked Lists | π | Linked List | |
1827. Invalid Tweets | π | Database | |
1834. Minimum Number Of People To Teach | π | Array, Hash Table, Greedy | |
1908. Recyclable And Low Fat Products | π | Database | |
1917. Maximum Average Pass Ratio | π | Array, Greedy, Heap (Priority Queue) | |
1923. Sentence Similarity III | π | Array, Two Pointers, String | |
2006. Find The Student That Will Replace The Chalk | π | Array, Binary Search, Simulation, Prefix Sum | |
2023. Design Movie Rental System | π | Array, Hash Table, Design, Heap (Priority Queue), Ordered Set | |
2076. Sum Of Digits Of String After Convert | π | String, Simulation | |
2096. Find The Longest Valid Obstacle Course At Each Position | π | Array, Binary Search, Binary Indexed Tree | |
2102. Find The Middle Index In Array | π | Array, Prefix Sum | |
2132. Convert 1d Array Into 2d Array | π | Array, Matrix, Simulation | |
2174. Next Greater Numerically Balanced Number | π | Hash Table, Math, Backtracking, Counting, Enumeration | |
2229. Maximum Fruits Harvested After At Most K Steps | π | Array, Binary Search, Sliding Window, Prefix Sum | |
2307. Replace Non Coprime Numbers In Array | π | Array, Math, Stack, Number Theory | |
2316. Count Hills And Valleys In An Array | π | Array | |
2324. Find Triangular Sum Of An Array | π | Array, Math, Simulation, Combinatorics | |
2346. Largest 3 Same Digit Number In String | π | String | |
2392. Successful Pairs Of Spells And Potions | π | Array, Two Pointers, Binary Search, Sorting | |
2408. Number Of People Aware Of A Secret | π | Dynamic Programming, Queue, Simulation | |
2429. Design A Food Rating System | π | Array, Hash Table, String, Design, Heap (Priority Queue), Ordered Set | |
2432. Number Of Zero Filled Subarrays | π | Array, Math | |
2497. Maximum Matching Of Players With Trainers | π | Array, Two Pointers, Greedy, Sorting | |
2529. Range Product Queries Of Powers | π | Array, Bit Manipulation, Prefix Sum | |
2661. Smallest Missing Non Negative Integer After Operations | π | Array, Hash Table, Math, Greedy | |
2689. Rearranging Fruits | π | Array, Hash Table, Greedy, Sort | |
2734. Array Prototype Last | π | ||
2758. Check If Object Instance Of Class | π | ||
2837. Minimum Operations To Make The Integer Zero | π | Bit Manipulation, Brainteaser, Enumeration | |
2882. Ways To Express An Integer As Sum Of Powers | π | Dynamic Programming | |
2887. Sort Vowels In A String | π | String, Sorting | |
3242. Count Elements With Maximum Frequency | π | Array, Hash Table, Counting | |
3251. Maximum Area Of Longest Diagonal Rectangle | π | Array | |
3277. Find The Number Of Ways To Place People II | π | Array, Math, Geometry, Sorting, Enumeration | |
3278. Find The Number Of Ways To Place People I | π | Array, Math, Geometry, Sorting, Enumeration | |
3279. Alice And Bob Playing Flower Game | π | Math | |
3336. Water Bottles II | π | Math, Simulation | |
3383. Taking Maximum Energy From The Mystic Dungeon | π | Array, Prefix Sum | |
3437. Maximum Total Damage With Spell Casting | π | Array, Hash Table, Two Pointers, Binary Search, Dynamic Programming, Sorting, Counting | |
3459. Find The Minimum Area To Cover All Ones II | π | Array, Matrix, Enumeration | |
3461. Find The Minimum Area To Cover All Ones I | π | Array, Matrix | |
3462. Vowels Game In A String | π | Math, String, Brainteaser, Game Theory | |
3612. Adjacent Increasing Subarrays Detection I | π | Array | |
3619. Adjacent Increasing Subarrays Detection II | π | Array, Binary Search | |
3648. Find The Maximum Number Of Fruits Collected | π | Array, Dynamic Programming, Matrix | |
3678. Design Task Manager | π | Hash Table, Design, Heap (Priority Queue), Ordered Set | |
3733. Length Of Longest V Shaped Diagonal Segment | π | Array, Dynamic Programming, Memoization, Matrix | |
3744. Minimum Operations To Make Array Elements Zero | π | Array, Math, Bit Manipulation | |
3748. Sort Matrix By Diagonals | π | Array, Sorting, Matrix | |
3790. Fruits Into Baskets II | π | Array, Binary Search, Segment Tree, Simulation, Ordered Set | |
3791. Fruits Into Baskets III | π | Array, Binary Search, Segment Tree, Ordered Set | |
3794. Find The Minimum Amount Of Time To Brew Potions | π | Array, Simulation, Prefix Sum | |
3797. Design Spreadsheet | π | Array, Hash Table, String, Design, Matrix | |
3827. Implement Router | π | Array, Hash Table, Binary Search, Design, Queue, Ordered Set | |
3830. Find Closest Person | π | Math | |
3851. Find Sum Of Array Product Of Magical Sequences | π | Array, Math, Dynamic Programming, Bit Manipulation, Combinatorics, Bitmask | |
3872. Find Most Frequent Vowel And Consonant | π | Hash Table, String, Counting |