同步操作将从 doocs/leetcode 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This project contains solutions for problems from LeetCode, "Coding Interviews (2nd Edition)", "Coding Interviews (Special Edition)", "Cracking the Coding Interview (6th Edition)", etc. All solutions are implemented in multiple programming languages, including but not limited to: Java, Python, C++, Go, TypeScript, Rust. We are working hard to update, welcome to Star 🌟 and follow this project to get the latest updates.
Binary search
Binary search
Binary search
Quick Sort
, Merge Sort
Addition of large numbers
Multiply large numbers
Prefix sum
Prefix sum
Prefix sum
, Difference array
Prefix sum
, Difference array
Two pointers
, Hash table
Two pointers
Bit manipulation
, Lowbit
Merge intervals
Linked List
, Pointer
, Array
Monotonic Stack
Monotonic Stack
Monotonic Stack
Monotonic Stack
Monotonic Stack
Monotonic Stack
Monotonic Stack
Monotonic Queue
Monotonic Queue
Monotonic Queue
Dynamic Programming
, Monotonic Queue
Hash Table
、Backtracking
Rabin-Karp
Rabin-Karp
Rabin-Karp
, Binary search
Rabin-Karp
BFS
, DFS
, Flood fill
BFS
, Flood fill
BFS with multiple sources
BFS with multiple sources
BFS
, Shortest paths model
BFS
, Shortest paths model
BFS
, Shortest paths model
BFS
, Shortest paths model
Minimum steps model
, Two-end BFS
, A* search
Minimum steps model
, Two-end BFS
Minimum steps model
, Two-end BFS
Minimum steps model
, A* search
BFS
, Minimum steps model
, A* search
BFS
, A* search
BFS using deque
BFS using deque
DFS, Flood fill
DFS
, Backtracking
DFS
, Backtracking
DFS
, Backtracking
DFS
, Backtracking
DFS
, Backtracking
DFS
, Backtracking
DFS
、Memoization
DFS
、Memoization
DFS
、Bitmask
、Memoization
DFS
、Memoization
DFS
、Memoization
Linear problem
Linear problem
Linear problem
Linear problem
Linear problem
, LIS
Linear problem
, LIS
, Greedy
Linear problem
, LIS
Linear problem
, LIS
Sort
, Linear problem
, LIS
Sort
, Linear problem
, LIS
Linear problem
, LCS
Linear problem
, LCS
Linear problem
, LCS
0-1 Knapsack problem
0-1 Knapsack problem
0-1 Knapsack problem
Unbounded Knapsack problem
Unbounded Knapsack problem
Group Knapsack problem
Digit DP problem
, Memoization
Digit DP problem
, Memoization
Digit DP problem
, Memoization
Digit DP problem
, Memoization
Digit DP problem
, Memoization
Digit DP problem
, Memoization
Union find
, Detect cycles
Union find
Union find
Union find
Union find
Union find
, Reversed thinking
Union find
, Reversed thinking
Union find
, Offline algorithm
Two Union find
Binary Indexed Tree
, Segment Tree
Binary Indexed Tree
, Segment Tree
Binary Indexed Tree
, Segment Tree
Binary Indexed Tree
Binary Indexed Tree 2D
, Segment Tree
Binary Indexed Tree
, Discretization
, Segment Tree
Binary Indexed Tree
, Discretization
, Segment Tree
Binary Indexed Tree
, Discretization
, Divide and Conquer
, Segment Tree
Binary Indexed Tree
, Discretization
, Interval maximum
Dynamic Segment Tree
, Lazy Propogation
Dynamic Segment Tree
, Lazy Propogation
Dynamic Segment Tree
, Lazy Propogation
Dynamic Segment Tree
, Lazy Propogation
Segment Tree
Segment Tree
, Discretization
, Line Sweep
Shortest Path
, Dijkstra's algorithm
, Bellman Ford's algorithm
, SPFA
Shortest Path
, Dijkstra's algorithm
Minimum Spanning Tree
, Prim's algorithm
, Kruskal's algorithm
, Union find
Minimum Spanning Tree
, Kruskal's algorithm
Minimum Spanning Tree
, Kruskal's algorithm
, Union find
Minimum Spanning Tree
, Kruskal's algorithm
, Union find
Graph coloring
, Union find
I'm looking for long-term contributors/partners to this repo! Send me PRs if you're interested! See the following:
This project exists thanks to all the people who contribute.
Thank you to all our backers and sponsors!
"You help the developer community practice for interviews, and there is nothing better we could ask for." -- Alan Yessenbayev
The copyright of this project belongs to Doocs community. For commercial reprints, please contact @yanglbme for authorization. For non-commercial reprints, please indicate the source.
We welcome everyone to add @yanglbme's personal WeChat (WeChat ID: YLB0109), with the note "leetcode". In the future, we will create algorithm and technology related discussion groups, where we can learn and share experiences together, and make progress together.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。