Algorithm Greedy
an archive of posts in this category
Backend MYSQL
MYSQL排查问题读写分离
分库分表做到永不迁移数据和避免热点
分库分表实战
分库分表
MYSQL的主从复制
MVCC多版本并发控制
MySQL优化建议
MySQL查出重复的记录
MySQL的七种JOIN
MySQL如何被执行的
MYSQL常见问题
MYSQL基础
Backend Redis
Redis工具类跳表
布隆过滤器的实现
分布式锁对比
Redis实现分布式锁与Redisson
Redis实现的分布式锁2
Redis实现的分布式锁
Redis哈希槽实战
RedisCluster
Redis集群解决方案
Redis主从架构
Redis如何做到高可用
Redis的基本数据类型
Redis基础
Backend Thread
CountDownLatchAQS源码分析
AbstractQueuedSynchronizer
ReentrantLock
Synchronized
Volatile
ThreadLocal
锁的分类
线程池业务中的实践
线程池
Interview Pic
Solving problems from scratchArchitecture Design
Final
Design Pattern
Distributed
MQ
Spring
Computer
Redis
Thread
Collection
Base
MYSQL
Interview
Backend Spring
搭建SpringCloud项目Spring与Redis通信设计结构图
Springboot自动装配原理
SpringBoot
Spring循环依赖
Spring的生命周期
Spring手写实现AOP
Spring的AOP
Spring的IOC启动过程
Spring基础
Work
JDBCBatchUpdateWhen to use the different log levels
输入URL页面没出现如何排查
JWT基础
表驱动法
本地jar引入到maven方式
Windows10关闭端口占用进程
js上精度丢失解决方案
Linux环境下安装svn
如何高效的使用 Git
Design Patterns
里氏替换原则迪米特法则
接口分离原则
依赖倒置原则
单一原则
开闭原则
面向对象设计原则
单例模式
适配器模式
建造者模式
抽象工厂模式
简单工厂模式
工厂方法模式
创建型设计模式
UML类图
面向对象的设计过程
Data Structure
Dynamic-Length Sliding WindowMaster Fixed-Length Sliding Window: A Universal Approach
Floyd's Algorithm for Finding Duplicate Number
SORT
Levenshtein Distance Algorithm
Mastering Coin Change with Dynamic Programming
Union-Find
Prefix Sum
Morris
Reverse LinkedList
LRU LinkedList
Binary Search Universal Formula
System Design Other
如何写一个并行调用模版架构设计之徽服务拆分
如何设计好一个接口
手写LRU
如何实现订单主动过期释放
阿里云短信验证服务
日志的使用
如何高效对接第三方支付
如何设计一个高并发场景
图片验证码功能
xxljob分布式定时任务框架与系统的接入
如何设计一个站内消息系统?
如何设计一个秒杀系统?
如何设计一个短链系统?
如何解决网站大文件上传问题?
如何统计网站UV?
Algorithm Array
Count SquaresZigzag Traverse
Min Rewards
Largest Range
Subarray Sort
Four Number Sum
Best Seat
Missing Numbers
Zero Sum Subarray
Merge Overlapping Intervals
First Duplicate Value
Array Of Products
Longest Peak
Spiral Traverse
Monotonic Array
Move Element To End
SmallestDifference
Three Number Sum
Non-Constructible Change
Tournament Winner
Sorted Squared Array
Validate Subsequence
Two Number Sum-Easy
Algorithm BST
Validate Three NodesSame BSTs
Reconstruct BST
Find Kth Largest Value In BST
Min Height BST
BST Traversal
Validate Binary Search Tree
BST Construction
Find Closest Value In BST
Algorithm Binary Trees
Find Nodes Distance KMax Path Sum In Binary Tree
Split Binary Tree
Symmetrical Tree
Merge Binary Trees
Height Balanced Binary Tree
Find Successor
Binary Tree Diameter
Invert Binary Tree
Evaluate Expression Tree
Node Depths
Branch Sums
Algorithm Graphs
Boggle BoardTwo-Colorable
Minimum Passes Of Matrix
Cycle In Graph
Remove Islands
Youngest Common Ancestor
River Sizes
Breadth-first Search
Single Cycle Check
Depth-first Search
Algorithm Sorting
Radix SortHeap Sort
Quick Sort
Three Number Sort
Selection Sort
Insertion Sort
Bubble Sort
Algorithm Greedy
Valid Starting CityTask Assignment
Tandem Bicycle
Class Photos
Minimum Waiting Time
Algorithm String
Pattern MatcherUnderscorify Substring
Longest Substring Without Duplication
One Edit Distance
Minimum Characters For Words
Reverse Words In String
Valid IP Addresses
Group Anagrams
Longest Palindromic Substring
Semordnilap
First Non-Repeating Character
Generate Document
Run-Length Encoding
Common Characters
Caesar Cipher Encryptor
Palindrome Check
Algorithm Stack
Reverse Polish NotationNext Greater Element
Sort Stack
Sunset Views
Balanced Brackets
Min Max Stack Construction
Algorithm Searching
Index Equals ValueQuick Select
Search For Range
Shifted Binary Search
Search In Sorted Matrix
Find Three Largest Numbers
Binary Search
Algorithm LinkedLists
Linked List PalindromeZip Linked List
Rearrange Linked List
LRU Cache
Shift Linked List
Merge Linked Lists
Reverse Linked List
Find Loop
Merging Linked Lists
Sum of Linked Lists
Remove Kth Node From End
Middle of the Linked List
Remove Duplicates From Linked List
Algorithm Famous
Prim’s AlgorithmKruskal's Algorithm
Topological Sort
Dijkstra's Algorithm
Union Find
Stable Internships
Kadane's Algorithm
Algorithm Dynamic
Number Of Ways To Traverse GraphLevenshtein Distance
Min Number Of Coins For Change
Number Of Ways To Make Change
Maximum sum of Non-adjacent nodes
LeetCode Binary Search
1539. Kth Missing Positive Number658. Find K Closest Elements
278. First Bad Version
287. Find the Duplicate Number
786. K-th Smallest Prime Fraction
719. Find K-th Smallest Pair Distance
668. Kth Smallest Number in Multiplication Table
378. Kth Smallest Element in a Sorted Matrix
4. Median of Two Sorted Arrays
1011. Capacity To Ship Packages Within D Days
875. Koko Eating Bananas
240. Search a 2D Matrix II
74. Search a 2D Matrix
69. Sqrt(x)
852. Peak Index in a Mountain Array
162.Find Peak Element
154.Find Minimum in Rotated Sorted Array II
153.Find Minimum in Rotated Sorted Array
81.Search in Rotated Sorted Array II
33.Search in Rotated Sorted Array
981.Time Based Key-Value Store
34.Search Insert Position
704.Binary Search
35.Search Insert
LeetCode Array
916. Word Subsets3042. Count Prefix and Suffix Pairs I
1408. String Matching in an Array
1769. Minimum Number of Operations to Move All Balls to Each Box
2274. Maximum Consecutive Floors Without Special Floors
2381. Shifting Letters II
2270. Number of Ways to Split Array
1366. Rank Teams by Votes
3046. Split the Array
3159. Find Occurrences of an Element in an Array
1014. Best Sightseeing Pair
2545. Sort the Students by Their Kth Score
769. Max Chunks To Make Sorted
3285. Find Indices of Stable Mountains
885. Spiral Matrix III
1338. Reduce Array Size to The Half
670. Maximum Swap
2593. Find Score of an Array After Marking All Elements
3264. Final Array State After K Multiplication Operations I
65. Valid Number
2717. Semi-Ordered Permutation
2779. Maximum Beauty of an Array After Applying Operation
3152. Special Array II
66. Plus One
498. Diagonal Traverse
2022. Convert 1D Array Into 2D Array
766. Toeplitz Matrix
1380. Lucky Numbers in a Matrix
31.Next Permutation
973.K Closest Points to Origin
453.Minimum Moves to Equal Array Elements
215.Kth Largest Element in an Array
349.Intersection of Two Arrays
36.Valid Sudoku
242.Valid Anagram
347.Top K Frequent Elements
238.Product of Array Except Self
128.Longest Consecutive Sequence
659.Encode and Decode Strings
2357.Make Array Zero by Subtracting Equal Amounts
217.Contains Duplicate
LeetCode Two Pointers
1930. Unique Length-3 Palindromic Subsequences1847. Closest Room
9. Palindrome Number
1768. Merge Strings Alternately
1868. Product of Two Run-Length Encoded Arrays
986. Interval List Intersections
443. String Compression
26. Remove Duplicates from Sorted Array
16. 3Sum Closest
88.Merge Sorted Array
680.Valid Palindrome II
528.Random Pick with Weight
75.Sort Colors
283.Move Zeroes
408.Valid Word Abbreviation
42.Trapping Rain Water
15.3Sum
977.Squares of a Sorted Array
167.Two Sum II - Input Array Is Sorted
11.Container With Most Water
125.Valid Palindrome
LeetCode HashTable
3083. Existence of a Substring in a String and Its Reverse266. Palindrome Permutation
447. Number of Boomerangs
1010. Pairs of Songs With Total Durations Divisible by 60
523. Continuous Subarray Sum
791. Custom Sort String
525. Contiguous Array
219. Contains Duplicate II
290.Word Pattern
953.Verifying an Alien Dictionary
169.Majority Element
260.Single Number III
41.First Missing Positive
49.Group Anagrams
560.Subarray Sum Equals K
LeetCode LinkedList
2. Add Two Numbers138.Copy List with Random Pointer
19.Remove Nth Node From End of List
143. Reorder List
141.Linked List Cycle
21.Merging Linked Lists
206.Reverse Linked List
LeetCode Stack
1475. Final Prices With a Special Discount in a Shop224. Basic Calculator
636. Exclusive Time of Functions
394. Decode String
1209. Remove All Adjacent Duplicates in String II
71. Simplify Path
1047. Remove All Adjacent Duplicates In String
716.Max Stack
1249.Minimum Remove to Make Valid Parentheses
1762.Buildings With an Ocean View LevelI
227.Basic Calculator II
735.Asteroid Collision
853.Car Fleet
739.Daily Temperatures
22.Generate Parenthesesn
150.Evaluate Reverse Polish Notation
20. Valid Parentheses
LeetCode SlideWindow
3298. Count Substrings That Can Be Rearranged to Contain a String II220. Contains Duplicate III
1984. Minimum Difference Between Highest and Lowest of K Scores
3297. Count Substrings That Can Be Rearranged to Contain a String I
2269. Find the K-Beauty of a Number
(Review)30. Substring with Concatenation of All Words
567.Permutation in String
438. Find All Anagrams in a String
1888. Minimum Number of Flips to Make the Binary String Alternating
2653. Sliding Subarray Beauty
2134. Minimum Swaps to Group All 1's Together II
1297. Maximum Number of Occurrences of a Substring
1652. Defuse the Bomb
1423. Maximum Points You Can Obtain from Cards
2461. Maximum Sum of Distinct Subarrays With Length K
2841. Maximum Sum of Almost Unique Subarray
1461. Check If a String Contains All Binary Codes of Size K
1052. Grumpy Bookstore Owner
2379. Minimum Recolors to Get K Consecutive Black Blocks
2090. K Radius Subarray Averages
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
643. Maximum Average Subarray I
1456. Maximum Number of Vowels in a Substring of Given Length
2762. Continuous Subarrays
122. Best Time to Buy and Sell Stock II
76. Minimum Window Substring
424. Longest Repeating Character Replacement
121. Best Time to Buy and Sell Stock
LeetCode Trees
732. My Calendar III731. My Calendar II
729. My Calendar I
1367. Linked List in Binary Tree
199.Binary Tree Right Side View
339.Nested List Weight Sum
236. Lowest Common Ancestor of a Binary Tree
297.Serialize and Deserialize Binary Tree
124.Binary Tree Maximum Path Sum
105.Construct Binary Tree from Preorder and Inorder Traversal
98.Validate Binary Search Tree
102.Binary Tree Level Order Traversal
235.Lowest Common Ancestor of a Binary Search Tree
572.Subtree of Another Tree
230.Kth Smallest Element in a BST
104.Maximum Depth of Binary Tree
226.Invert Binary Tree
LeetCode Tries
212.Word Search II211.Design Add and Search Words Data Structure
208.Implement Trie(Prefix Tree)
LeetCode MathGeometry
3138. Minimum Length of Anagram Concatenation7. Reverse Integer
50. Pow(x, n)
415. Add Strings
73.Set Matrix Zeroes
54.Spiral Matrix
48.Rotate Image
LeetCode BitManipulation
371.Sum of Two Integers268.Missing Number
190.Reverse Bits
338.Counting Bits
191.Number of 1 Bits
LeetCode Greedy
2241. Design an ATM Machine2182. Construct String With Repeat Limit
1792. Maximum Average Pass Ratio
2558. Take Gifts From the Richest Pile
2931. Maximum Spending After Buying Items
13. Roman to Integer
55.Jump Game
53.Maximum Subarray
LeetCode Intervals
253.Meeting Rooms II435.Non-overlapping Intervals
56.Merge Intervals
57.Insert Interval
252.Meeting Rooms
LeetCode Backtracking
52. N-Queens II51. N-Queens
386.Lexicographical Numbers
79.Word Search
39.Combination Sum
LeetCode Graphs
261.Graph Valid Tree207.Course Schedule
417.Pacific Atlantic Water Flow
133.Clone Graph
200.Number of Islands
LeetCode Dynamic Programming
1422. Maximum Score After Splitting a String2415. Reverse Odd Levels of Binary Tree
935. Knight Dialer
5.Longest Palindromic Substring
72.Edit Distance
377.Combination Sum IV
1143.Longest Common Subsequence
62.Unique Paths
300.Longest Increasing Subsequence
139.Word Break
152.Maximum Product Subarray
322.Coin Change
91.Decode Ways
647.Palindromic Substrings
198.House Robber II
198.House Robber
70.Climbing Stairs
LeetCode String
2116. Check if a Parentheses String Can Be Valid1400. Construct K Palindrome Strings
2185. Counting Words With a Given Prefix
2264. Largest 3-Same-Digit Number in String
1016. Binary String With Substrings Representing 1 To N
3019. Number of Changing Keys
2981. Find Longest Special Substring That Occurs Thrice I
38. Count and Say
468. Validate IP Address
8. String to Integer (atoi)
58. Length of Last Word
28. Find the Index of the First Occurrence in a String
434. Number of Segments in a String
14. Longest Common Prefix
LeetCode Math
2657. Find the Prefix Common Array of Two Arrays3223. Minimum Length of String After Operations
2275. Largest Combination With Bitwise AND Greater Than Zero
3270. Find the Key of the Numbers
2559. Count Vowel Strings in Ranges
3280. Convert Date to Binary
1812. Determine Color of a Chessboard Square
999. Available Captures for Rook
3001. Minimum Moves to Capture The Queen
3274. Check if Two Chessboard Squares Have the Same Color
LeetCode BFS
515. Find Largest Value in Each Tree Row2471. Minimum Number of Operations to Sort a Binary Tree by Level
LeetCode DynamicSlidingWindow
1208. Get Equal Substrings Within Budget2730. Find the Longest Semi-Repetitive Substring
1493. Longest Subarray of 1's After Deleting One Element
3090. Maximum Length Substring With Two Occurrences
3. Longest Substring Without Repeating Characters