LeetCode
200 LeetCode practice problems for beginners in algorithms and data structures
Install / Use
/learn @hoangcaobao/LeetCodeREADME
LeetCode
I classify 200 leetcode problems into fundamental algorithms and upload my C++ and Python solution to who concern. Moreover, you can visit my profie in LeetCode, I will upload solutions for some problems regularly. Hope you have great time practicing Leetcode.
WEEK 1 | # | Title | Difficulty | |---| ----- | -------- | | | Array | | |15| 3Sum | Medium | |1324| Print Words Vertically | Medium | |566| Reshape the Matrix | Easy | |14| Longest Common Prefix | Easy | |763| Partition Labels | Medium | |55| Jump Game | Medium | |33| Search in Rotated Sorted Array | Medium | |1465| Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts | Medium | |1894| Find the Student that Will Replace the Chalk | Medium | |62| Unique Paths | Medium | |714| Best Time to Buy and Sell Stock with Transaction Fee | Medium | |36| Valid Sudoku | Medium | |929| Unique Email Addresses | Easy |
WEEK 2 | # | Title | Difficulty | |---| ----- | -------- | | | Two Pointers | | |350| Intersection of Two Arrays II | Easy | |560| Subarray Sum Equals K | Medium | |1234| Replace the Substring for Balanced String | Medium | |632| Smallest Range Covering Elements from K Lists | Hard | |3| Longest Substring Without Repeating Characters | Medium | |11| Container With Most Water | Medium | |283| Move Zeroes | Easy | |845| Longest Mountain in Array | Medium | |209| Minimum Size Subarray Sum | Medium | |287| Find the Duplicate Number | Medium | |16| 3Sum Closest | Medium |
WEEK 3 | # | Title | Difficulty | |---| ----- | -------- | | | STACK AND QUEUE | | |1249| Minimum Remove to Make Valid Parentheses | Medium| |856| Score of Parentheses | Medium | |946| Validate Stack Sequences | Medium | |609| Find Duplicate File in System | Medium | |503| Next Greater Element II | Medium | |1047| Remove All Adjacent Duplicates In String | Easy |
WEEK 4 | # | Title | Difficulty | |---| ----- | -------- | | | GREEDY | | |122| Best Time to Buy and Sell Stock II | Easy | |392| Is Subsequence | Easy | |1029| Two City Scheduling | Easy | |406| Queue Reconstruction by Height | Medium | |921| Minimum Add to Make Parentheses Valid | Medium | |1338| Reduce Array Size to The Half | Medium | |1433| Check If a String Can Break Another String | Medium | |1833| Maximum Ice Cream Bars | Medium | |1753| Maximum Score From Removing Stones | Medium | |1191| K-Concatenation Maximum Sum | Medium | |1899| Merge Triplets to Form Target Triplet | Medium |
WEEK 5 | # | Title | Difficulty | |---| ----- | -------- | | | HEAP | | |378| Kth Smallest Element in a Sorted Matrix | Medium | |659| Split Array into Consecutive Subsequences | Medium | |692| Top K Frequent Words | Medium | |973| K Closest Points to Origin | Medium | |1054| Distant Barcodes | Medium | |218| The Skyline Problem | Hard | |857| Minimum Cost to Hire K Workers | Hard |
WEEK 6 | # | Title | Difficulty | |---| ----- | -------- | | | LINKED LIST | | |21| Merge Two Sorted Lists | Easy | |234| Palindrome Linked List | Easy | |24| Swap Nodes in Pairs | Medium | |86| Partition List | Medium | |92| Reverse Linked List II | Medium | |148| Sort List | Medium | |430| Flatten a Multilevel Doubly Linked List | Medium | |445| Add Two Numbers II | Medium | |725| Split Linked List in Parts | Medium| |1019| Next Greater Node In Linked List | Medium |
WEEK 7 | # | Title | Difficulty | |---| ----- | -------- | | | GRAPH| | |1387|Sort Integers by The Power Value| Medium | |997|Find the Town Judge| Easy | |797|All Paths From Source to Target| Medium | |1042|Flower Planting With No Adjacent| Medium | |787| Cheapest Flights Within K Stops| Medium |
WEEK 8 | # | Title | Difficulty | |---| ----- | -------- | | | BFS | | |417| Pacific Atlantic Water Flow | Medium | |529| Minesweeper | Medium | |752| Open the Lock | Medium | |909| Snakes and Ladders | Medium | |1129| Shortest Path with Alternating Colors | Medium | |1162| As Far from Land as Possible | Medium | |1391| Check if There is a Valid Path in a Grid | Medium | |490| The Maze | Medium | |505| The Maze II | Medium| |499| The Maze III | Medium |
WEEK 9 | # | Title | Difficulty | |---| ---------- |:--------:| | | DFS | | | 695 | Max Area of Island | Medium | | 1254 | Number of Closed Islands | Medium | | 130 | Surrounded Regions | Medium | | 934 | Shortest Bridge | Medium | | 841 | Keys and Rooms | Medium | | 1306 | Jump Game III | Medium | | 399 | Evaluate Division | Medium | | 785 | Is Graph Bipartite? | Medium | | 133 | Clone Graph | Medium | | 207 | Course Schedule | Medium | | 210 | Course Schedule II | Medium | | 802 | Find Eventual Safe States | Medium | | 1462 | Course Schedule IV | Medium |
WEEK 10 | # | Title | Difficulty | |---| ---------- |:--------:| | | DJISKTRA | | | | 1135 | Connecting Cities With Minimum Cost | M
