Letscode
Let's provide code for my Letscode channel!
Install / Use
/learn @Jasondecode2020/LetscodeREADME
LetsCode·Solving Leetcode Problems by Pattern
All questions are solved by patterns, and the learning sequence is listed below.
- Check my YouTube for all questions (https://www.youtube.com/@letscode1000)
- Rating for all questions from (https://zerotrac.github.io/leetcode_problem_rating/#/)
- Practice with ratings (https://huxulm.github.io/lc-rating/zen)
Top Coding Patterns
-
1 Hash
-
1.1 Hash Table
-
1.1.1 Two sum(16)
- 1. Two Sum
- 1512. Number of Good Pairs
- 2815. Max Pair Sum in an Array
- 2748. Number of Beautiful Pairs
- 219. Contains Duplicate II
- 121. Best Time to Buy and Sell Stock
- 2342. Max Sum of a Pair With Equal Sum of Digits
- 1010. Pairs of Songs With Total Durations Divisible by 60
- 3185. Count Pairs That Form a Complete Day II
- 454. 4Sum II
- 2874. Maximum Value of an Ordered Triplet II
- 1014. Best Sightseeing Pair
- 1214. Two Sum BSTs
- 2971. Find Polygon With the Largest Perimeter
- 1679. Max Number of K-Sum Pairs
- 2964. Number of Divisible Triplet Sums
-
-
1.2 Counter
-
1.3 Hash Set
-
-
2 Matrix
-
3 Stack
-
3.1 basics
-
-
4 Queue
-
5 Heap
-
Basics
-
Two Heaps
-
Regret greedy
-
-
6 Binary Search
-
6.1 Basics
- 34. Find First and Last Position of Element in Sorted Array
- 35. Search Insert Position
- 704. Binary Search
- 744. Find Smallest Letter Greater Than Target
- 2529. Maximum Count of Positive Integer and Negative Integer
- 1385. Find the Distance Value Between Two Arrays
- 2300. Successful Pairs of Spells and Potions
- 2389. Longest Subsequence With Limited Sum
- 2080. Range Frequency Queries
- 2563. Count the Number of Fair Pairs
- 2856. Minimum Array Length After Pair Removals
- 243. Shortest Word Distance
- 244. Shortest Word Distance II
- 245. Shortest Word Distance III
- 374. Guess Number Higher or Lower
- 1182. Shortest Distance to Target Color
-
6.2 Binary Search Answer
-
6.2.1 Minimum value(10)
- 1283. Find the Smallest Divisor Given a Threshold
- 2187. Minimum Time to Complete Trips
- 1870. Minimum Speed to Arrive on Time
- 1011. Capacity To Ship Packages Within D Days
- 875. Koko Eating Bananas
- 475. Heaters
- 2594. Minimum Time to Repair Cars
- 1482. Minimum Number of Days to Make m Bouquets
- 2604. Minimum Time to Eat All Grains
- 2702. Minimum Operations to Make Numbers Non-positive
-
6.2.2 Maximum Value
-
6.2.3 minimize max value
-
6.2.4 maximize min value
-
6.2.5 kth smallest/largest
-
-
-
7 Two Pointers
-
7.1 Basics
-
7.2 Fast Slow Pointers
-
7.3 Three Pointers
-
7.4 List Groups(47)
-
