LeetCode (204/1467)
→ Easy 94
--Medium 98
--Hard 12
Algotithm exercises 🚨🚨🚨
the following probleam is choose by:
choose a tag, get top 20 sort by index
, and top 20 with the Acceptance
high to low.
Tag | Progress |
---|---|
Array | 63/248 |
String | 37/146 |
Math | 17/122 |
Depth-first Search | 20/95 |
Breadth-first Search | 4/68 |
Binary Search | 7/61 |
Linked List | 26/38 |
Tree | 27/136 |
Binary Search Tree | 2/15 |
Hash Table | 9/119 |
Stack | 10/57 |
Backtracking | 2/49 |
Greedy | 2/64 |
Bit Manipulation | 5/39 |
Two Pointers | 2/30 |
Heap | 2/34 |
Dynamic Programming | 13/188 |
Brainteaser | 2/5 |
Minimax | 1/8 |
Geometry | 1/7 |
Concurrency | 1/9 |
Database | 3/112 |
other | 5/? |
Array (63/248)
-
- 1. Two Sum
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 35. Search Insert Position
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 167. Two Sum II - Input array is sorted
- 169. Majority Element
- 189. Rotate Array
- 217. Contains Duplicate
- 268. Missing Number
- 283. Move Zeroes
- 448. Find All Numbers Disappeared in an Array
- 485. Max Consecutive Ones
- 509. Fibonacci Number
- 561. Array Partition I
- 566. Reshape the Matrix
- 581. Shortest Unsorted Continuous Subarray
- 628. Maximum Product of Three Numbers
- 661. Image Smoother
- 674. Longest Continuous Increasing Subsequence
- 697. Degree of an Array
- 717. 1-bit and 2-bit Characters
- 746. Min Cost Climbing Stairs
- 766. Toeplitz Matrix
- 830. Positions of Large Groups
- 832. Flipping an Image
- 905. Sort Array By Parity
- 977.Squares of a Sorted Array
- 1051. Height Checker
- 1108.Defanging an IP Address
- 1122. Relative Sort Array
- 1252. Cells with Odd Values in a Matrix
- 1450. Number of Students Doing Homework at a Given Time
- 1464. Maximum Product of Two Elements in an Array
-
- 11. Container With Most Water
- 15. 3Sum 🚨
- 16. 3Sum Closest
- 18. 4Sum 🚨
- 31. Next Permutation 🚨
- 33. Search in Rotated Sorted Array 🚨
- 34. Find First and Last Position of Element in Sorted Array 🚨
- 39. Combination Sum
- 40. Combination Sum II
- 62. Unique Paths 🚨
- 78. Subsets
- 216. Combination Sum III
- 238. Product of Array Except Self
- 287. Find the Duplicate Number
- 442. Find All Duplicates in an Array
- 495. Teemo Attacking
- 539. Minimum Time Difference
- 565. Array Nesting
- 667. Beautiful Arrangement II
- 695. Max Area of Island
- 769. Max Chunks To Make Sorted
- 890. Find and Replace Pattern
- 950. Reveal Cards In Increasing Order
- 974. Subarray Sums Divisible by K
in HashTable group too
- 1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
String (37/146)
-
- 13. Roman to Integer
in Math group too
- 14. Longest Common Prefix
- 20. Valid Parentheses
in Stack group too
- 28. Implement strStr()
- 38. Count and Say
- 58. Length of Last Word
- 344. Reverse String
- 520. Detect Capital
- 521. Longest Uncommon Subsequence I
- 557. Reverse Words in a String III
- 657. Judge Route Circle
- 709.To Lower Case
- 804. Unique Morse Code Words
- 824. Goat Latin
- 929. Unique Email Addresses
- 1221. Split a String in Balanced Strings
- 1446. Consecutive Characters
- 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
- 13. Roman to Integer
-
- 3.Longest Substring Without Repeating Characters
- 5. Longest Palindromic Substring🚨
- 6. ZigZag Conversion
- 8. String to Integer (atoi)
- 12. Integer to Roman
in Math group too
- 17. Letter Combinations of a Phone Number
- 22. Generate Parentheses
- 43. Multiply Strings
in Math group too
- 49. Group Anagrams
in HashTable group too
- 537. Complex Number Multiplication
- 556. Next Greater Element III
- 791. Custom Sort String
- 1249. Minimum Remove to Make Valid Parentheses
in Stack group too
- 1451. Rearrange Words in a Sentence
- 1452. People Whose List of Favorite Companies Is Not a Subset of Another List
- 1456. Maximum Number of Vowels in a Substring of Given Length
-
- 10. Regular Expression Matching🚨
in Dynamic Programming group too
- 32. Longest Valid Parentheses🚨
in Dynamic Programming group too
- 65. Valid Number
- 10. Regular Expression Matching🚨
Math (17/122)
-
- 7. Reverse Integer
- 9. Palindrome Number
- 13. Roman to Integer
in String group too
- 204. Count Primes
in Hash Table group too
- 268. Missing Number
in Array group too
- 645. Set Mismatch
in HashTable group too
- 728. Self Dividing Numbers
- 942. DI String Match
- 1266. Minimum Time Visiting All Points
- 1281. Subtract the Product and Sum of Digits of an Integer
-
- 2. Add Two Numbers
in Linked List group too
- 12. Integer to Roman
in String group too
- 43. Multiply Strings
in String group too
- 319. Bulb Switcher
in Brainteaser group too
- 523. Continuous Subarray Sum
in HashTable group too
🚨 - 535. Encode and Decode TinyURL
- 537. Complex Number Multiplication
in String group too
- 2. Add Two Numbers
Depth-first Search (20/95)
-
- 101. Symmetric Tree
in Tree group too
- 104. Maximum Depth of Binary Tree
in Tree group too
- 559. Maximum Depth of N-ary Tree
- 872. Leaf-Similar Trees
in Tree group too
- 897. Increasing Order Search Tree
- 101. Symmetric Tree
-
- 394. Decode String
in Stack group too
- 513. Find Bottom Left Tree Value
in BFS & Tree group too
- 515. Find Largest Value in Each Tree Row
in BFS & Tree group too
- 695. Max Area of Island
in Array group too
- 841. Keys and Rooms
- 959. Regions Cut By Slashes
- 979. Distribute Coins in Binary Tree
- 1026. Maximum Difference Between Node and Ancestor
- 1110. Delete Nodes And Return Forest
- 1302. Deepest Leaves Sum
- 1315. Sum of Nodes with Even-Valued Grandparent
- 1457. Pseudo-Palindromic Paths in a Binary Tree
in Bit Manipulation group too
- 1466. Reorder Routes to Make All Paths Lead to the City Zero
in Tree group too
- 394. Decode String
-
- 980. Unique Paths III
in Backtracking group too
🚨 - 1028. Recover a Tree From Preorder Traversal
- 980. Unique Paths III
Breadth-first Search (4/68)
-
- 101. Symmetric Tree
in Tree and DFS group too
- 559. Maximum Depth of N-ary Tree
in Tree and DFS group too
- 101. Symmetric Tree
-
- 513. Find Bottom Left Tree Value
in Tree and DFS group too
- 515. Find Largest Value in Each Tree Row
in Tree and DFS group too
- 513. Find Bottom Left Tree Value
Binary Search (7/61)
-
- 230. Kth Smallest Element in a BST
in Tree group too
- 300. Longest Increasing Subsequence
in Dynamic Programming group too
- 378. Kth Smallest Element in a Sorted Matrix
- 392. Is Subsequence
- 230. Kth Smallest Element in a BST
Linked List (26/38)
-
- 2. Add Two Numbers
- 19. Remove Nth Node From End of List
in Two Pointers group too
- 24. Swap Nodes in Pairs
- 61. Rotate List
- 82. Remove Duplicates from Sorted List II
- 86. Partition List
- 92. Reverse Linked List II
- 109. Convert Sorted List to Binary Search Tree
- 138. Copy List with Random Pointer
- 142. Linked List Cycle II
- 143. Reorder List
- 328. Odd Even Linked List
- 430. Flatten a Multilevel Doubly Linked List
- 445. Add Two Numbers II
- 725. Split Linked List in Parts
- 817. Linked List Components
- 1019. Next Greater Node In Linked List
in Stack group too
🚨
Tree(27/136)
-
- 101. Symmetric Tree
in DFS and BFS group too
- 104. Maximum Depth of Binary Tree
- 559. Maximum Depth of N-ary Tree
in DFS and BFS group too
- 589. N-ary Tree Preorder Traversal
- 617. Merge Two Binary Trees
- 700. Search in a Binary Search Tree
- 872. Leaf-Similar Trees
in DFS group too
- 965. Univalued Binary Tree
- 101. Symmetric Tree
-
- 230. Kth Smallest Element in a BST
in Binary Search group too
- 513. Find Bottom Left Tree Value
in BFS & DFS group too
- 515. Find Largest Value in Each Tree Row
in BFS & DFS group too
- 654.Maximum Binary Tree
- 701. Insert into a Binary Search Tree
- 814. Binary Tree Pruning
- 894. All Possible Full Binary Trees🚨
- 1008. Construct Binary Search Tree from Preorder Traversal
- 1261. Find Elements in a Contaminated Binary Tree
- 1466. Reorder Routes to Make All Paths Lead to the City Zero
in DFS group too
- 230. Kth Smallest Element in a BST
Binary Search Tree(2/15)
Hash Table(9/119)
-
- 645. Set Mismatch
in Math group too
- 771. Jewels and Stones
- 1207. Unique Number of Occurrences
- 645. Set Mismatch
-
- 49. Group Anagrams
in String group too
- 523. Continuous Subarray Sum
in Math group too
🚨 - 525. Contiguous Array 🚨
- 974. Subarray Sums Divisible by K
in Array group too
- 1261. Find Elements in a Contaminated Binary Tree
in tree group too
- 49. Group Anagrams
-
- 726. Number of Atoms
in Stack group too
- 726. Number of Atoms
Stack(10/57)
-
- 20. Valid Parentheses
in String group too
- 496. Next Greater Element I
- 1021. Remove Outermost Parentheses
- 20. Valid Parentheses
-
- 394. Decode String
in Depth-first Search group too
- 503. Next Greater Element II
- 739. Daily Temperatures
- 1019. Next Greater Node In Linked List
in LinkedList group too
🚨 - 1249. Minimum Remove to Make Valid Parentheses
in String group too
- 394. Decode String
-
- 84. Largest Rectangle in Histogram
in Array group too
- 726. Number of Atoms
in Hash Table group too
- 84. Largest Rectangle in Histogram
Backtracking(1/49)
-
- 980. Unique Paths III
in Depth-first Search group too
🚨
- 980. Unique Paths III
Greedy(2/64)
-
- 763. Partition Labels
in Two Pointers group too
- 1282. Group the People Given the Group Size They Belong To🚨
- 763. Partition Labels
Bit Manipulation(5/39)
Two Pointers(2/30)
-
- 11. Container With Most Water
- 19. Remove Nth Node From End of List
in Linked List group too
Heap(2/34)
-
- 347. Top K Frequent Elements
in Stack and HashTable group too
- 692. Top K Frequent Words
in Stack and HashTable group too
- 347. Top K Frequent Elements
Dynamic Programming (13/188)
-
- 121. Best Time to Buy and Sell Stock
in Array group too
- 198. House Robber
- 746. Min Cost Climbing Stairs
in Array group too
- 1025. Divisor Game
- 121. Best Time to Buy and Sell Stock
-
- 5.Longest Palindromic Substring
in String group too
- 62. Unique Paths
in Array group too
- 300. Longest Increasing Subsequence
in Binary Search group too
- 392. Is Subsequence
in Binary Search group too
- 1143. Longest Common Subsequence
- 1314. Matrix Block Sum
- 5.Longest Palindromic Substring
-
- 10. Regular Expression Matching
in String group too
- 32. Longest Valid Parentheses 🚨
in String group too
- 1458. Max Dot Product of Two Subsequences 🚨
- 10. Regular Expression Matching
Brainteaser 2/5
-
- 292. Nim Game
in Minimax group too
- 292. Nim Game
-
- 319. Bulb Switcher
in Math group too
- 319. Bulb Switcher
Minimax 1/8
-
- 292. Nim Game
in Brainteaser group too
- 292. Nim Game