leetcode-master
《代码随想录》LeetCode 刷题攻略:200道经典题目刷题顺序,共60w字的详细图解,视频难点剖析,50余张思维导图,支持C++,Java,Python,Go,JavaScript等多语言版本,从此算 法学习不再迷茫!🔥🔥 来看看,你会发现相见恨晚!🚀
Top Related Projects
LeetCode Problems' Solutions
Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路)
✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解
刷算法全靠套路,认准 labuladong 就够了!English version supported! Crack LeetCode, not only how, but also why.
Everything you need to know to get the job.
Quick Overview
LeetCode-Master is a comprehensive guide and resource repository for LeetCode problem-solving, focusing on data structures and algorithms. It provides detailed explanations, solutions, and learning paths for various coding interview questions, primarily in C++.
Pros
- Extensive coverage of LeetCode problems with detailed explanations
- Well-organized content with clear learning paths for different topics
- Includes both theoretical concepts and practical problem-solving approaches
- Active community and regular updates
Cons
- Primarily focused on C++, which may not be ideal for users of other programming languages
- Some explanations and comments are in Chinese, potentially limiting accessibility for non-Chinese speakers
- The large volume of content might be overwhelming for beginners
Getting Started
-
Clone the repository:
git clone https://github.com/youngyangyang04/leetcode-master.git
-
Navigate to the desired topic or problem in the repository structure.
-
Read the README files for each section to understand the learning path and problem-solving strategies.
-
Study the provided solutions and explanations for each problem.
-
Practice solving problems on your own, referring to the guide when needed.
-
Join the community discussions and contribute your own solutions or improvements.
Competitor Comparisons
LeetCode Problems' Solutions
Pros of leetcode
- Offers solutions in multiple programming languages (C++, Python, Java, etc.)
- Includes detailed explanations and time/space complexity analysis for each solution
- Covers a wide range of LeetCode problems, including many hard-level questions
Cons of leetcode
- Less structured learning path compared to leetcode-master
- Lacks comprehensive categorization of problems by topic or difficulty
- May not provide as many beginner-friendly explanations or step-by-step guides
Code Comparison
leetcode (C++ solution for Two Sum):
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> map;
for (int i = 0; i < nums.size(); i++) {
if (map.find(target - nums[i]) != map.end())
return {map[target - nums[i]], i};
map[nums[i]] = i;
}
return {};
}
leetcode-master (C++ solution for Two Sum):
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> map;
for (int i = 0; i < nums.size(); i++) {
auto iter = map.find(target - nums[i]);
if (iter != map.end()) {
return {iter->second, i};
}
map.insert(pair<int, int>(nums[i], i));
}
return {};
}
};
Both repositories provide similar solutions, but leetcode-master's code is wrapped in a class and uses slightly different syntax for map insertion.
Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路)
Pros of LeetCodeAnimation
- Provides animated visualizations of algorithms, making complex concepts easier to understand
- Offers solutions in multiple programming languages, catering to a wider audience
- Includes a variety of problem-solving approaches for each algorithm
Cons of LeetCodeAnimation
- Less comprehensive coverage of LeetCode problems compared to leetcode-master
- Animations may not be as helpful for advanced users who prefer text-based explanations
- Updates and new content are less frequent than leetcode-master
Code Comparison
LeetCodeAnimation (Python):
def twoSum(nums, target):
hash_table = {}
for i, num in enumerate(nums):
if target - num in hash_table:
return [hash_table[target - num], i]
hash_table[num] = i
return []
leetcode-master (C++):
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> map;
for (int i = 0; i < nums.size(); i++) {
auto it = map.find(target - nums[i]);
if (it != map.end()) {
return {it->second, i};
}
map[nums[i]] = i;
}
return {};
}
};
Both repositories offer valuable resources for learning and practicing LeetCode problems. LeetCodeAnimation excels in visual explanations, while leetcode-master provides more comprehensive coverage and frequent updates. The choice between the two depends on individual learning preferences and goals.
✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解
Pros of LeetCode-Go
- Written in Go, offering solutions for developers focused on this language
- Includes detailed explanations and complexity analysis for each solution
- Provides a comprehensive set of LeetCode problems with well-organized categories
Cons of LeetCode-Go
- Limited to Go language, while leetcode-master covers multiple languages
- May not be as beginner-friendly as leetcode-master, which offers more step-by-step guidance
- Lacks the extensive problem-solving strategies and patterns found in leetcode-master
Code Comparison
LeetCode-Go (Go):
func twoSum(nums []int, target int) []int {
m := make(map[int]int)
for i, num := range nums {
if j, ok := m[target-num]; ok {
return []int{j, i}
}
m[num] = i
}
return nil
}
leetcode-master (C++):
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> map;
for (int i = 0; i < nums.size(); i++) {
auto it = map.find(target - nums[i]);
if (it != map.end()) {
return {it->second, i};
}
map[nums[i]] = i;
}
return {};
}
};
Both repositories offer high-quality LeetCode solutions, but they cater to different audiences. LeetCode-Go is ideal for Go developers seeking in-depth explanations, while leetcode-master provides a more comprehensive, multi-language approach with additional learning resources.
刷算法全靠套路,认准 labuladong 就够了!English version supported! Crack LeetCode, not only how, but also why.
Pros of fucking-algorithm
- More comprehensive explanations of algorithms and data structures
- Covers a wider range of topics beyond just LeetCode problems
- Provides in-depth analysis and thought processes for problem-solving
Cons of fucking-algorithm
- Less frequently updated compared to leetcode-master
- Primarily written in Chinese, which may be a barrier for non-Chinese speakers
- Fewer problems covered overall
Code Comparison
leetcode-master:
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> map;
for (int i = 0; i < nums.size(); i++) {
if (map.find(target - nums[i]) != map.end()) {
return {map[target - nums[i]], i};
}
map[nums[i]] = i;
}
return {};
}
};
fucking-algorithm:
vector<int> twoSum(vector<int>& nums, int target) {
unordered_map<int, int> indices;
for (int i = 0; i < nums.size(); i++) {
int complement = target - nums[i];
if (indices.count(complement)) {
return {indices[complement], i};
}
indices[nums[i]] = i;
}
return {};
}
Both repositories provide high-quality content for algorithm learning, with leetcode-master focusing more on LeetCode problems and fucking-algorithm offering broader algorithmic insights. The choice between them depends on the user's language preference and specific learning goals.
Everything you need to know to get the job.
Pros of interviews
- Broader scope covering various CS topics beyond just LeetCode problems
- Includes system design and behavioral interview preparation
- Content in English, making it accessible to a wider international audience
Cons of interviews
- Less structured approach to problem-solving compared to leetcode-master
- Not as frequently updated as leetcode-master
- Lacks detailed explanations for each problem solution
Code Comparison
interviews:
public ListNode reverseList(ListNode head) {
ListNode prev = null;
while (head != null) {
ListNode next = head.next;
head.next = prev;
prev = head;
head = next;
}
return prev;
}
leetcode-master:
class Solution {
public:
ListNode* reverseList(ListNode* head) {
ListNode* temp;
ListNode* cur = head;
ListNode* pre = NULL;
while(cur) {
temp = cur->next;
cur->next = pre;
pre = cur;
cur = temp;
}
return pre;
}
};
Both repositories provide solutions to common coding interview problems, but leetcode-master offers a more structured approach with detailed explanations in Chinese. interviews covers a broader range of topics but with less depth in problem explanations. The code samples show similar approaches to reversing a linked list, with interviews using Java and leetcode-master using C++.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
ð æ¨è å¨çº¿é
读 (Githubå¨å½å
访é®ç»å¸¸ä¸ç¨³å®)
ð æ¨è Giteeåæ¥
- ä»ç» ï¼æ¬é¡¹ç®æ¯ä¸å¥å®æ´çå·é¢è®¡åï¼æ¨å¨å¸®å©å¤§å®¶å°èµ°å¼¯è·¯ï¼å¾ªåºæ¸è¿å¦ç®æ³ï¼å ³æ³¨ä½è
- æ£å¼åºç ï¼ã代ç éæ³å½ã ã
- PDFçæ¬ ï¼ã代ç éæ³å½ãç®æ³ç²¾è®² PDF çæ¬ ã
- ç®æ³å ¬å¼è¯¾ ï¼ã代ç éæ³å½ãç®æ³è§é¢å ¬å¼è¯¾ ã
- æå¼ºå «è¡æ ï¼ä»£ç éæ³å½ç¥è¯æçç²¾åPDF ã
- å·é¢é¡ºåº ï¼READMEå·²ç»å°å·é¢é¡ºåºæ好äºï¼æç §é¡ºåºä¸éä¸éå·å°±å¯ä»¥ã
- å¦ä¹ ç¤¾åº ï¼ä¸èµ·å¦ä¹ æå¡/é¢è¯æå·§/å¦ä½éæ©offer/大åå æ¨/èåºè§å/ç®åä¿®æ¹/ææ¯å享/ç¨åºäººçã欢è¿å å ¥ã代ç éæ³å½ãç¥è¯æç ã
- æ交代ç ï¼æ¬é¡¹ç®ç»ä¸ä½¿ç¨C++è¯è¨è¿è¡è®²è§£ï¼ä½å·²ç»æJavaãPythonãGoãJavaScriptççå¤è¯è¨çæ¬ï¼æè°¢è¿éçæ¯ä¸ä½è´¡ç®è ï¼å¦æä½ ä¹æ³è´¡ç®ä»£ç ç¹äº®ä½ ç头åï¼ç¹å»è¿éäºè§£æ交代ç çæ¹å¼ã
- è½¬è½½é¡»ç¥ ï¼ä»¥ä¸æææç« ç为æï¼ç¨åºåCarlï¼çååãå¼ç¨æ¬é¡¹ç®æç« è¯·æ³¨æåºå¤ï¼åç°æ¶ææè¢ææ¬è¿ï¼ä¼å¨ç¨æ³å¾æ¦å¨ç»´æ¤èªå·±çæçã让æ们ä¸èµ·ç»´æ¤ä¸ä¸ªè¯å¥½çææ¯åä½ç¯å¢ï¼
LeetCode å·é¢æ»ç¥
å·é¢æ»ç¥çèæ¯
å¾å¤åå¼å§å·é¢çåå¦é½æä¸ä¸ªå°æï¼é¢å¯¹leetcodeä¸è¿ä¸¤åéé¢ç®ï¼ä»ä½å·èµ·ã
大家平æ¶å·é¢æè§æçä½ï¼æµªè´¹çæ¶é´ä¸»è¦å¨ä¸ç¹ï¼
- æ¾é¢
- æ¾å°äºä¸åºè¯¥ç°é¶æ®µåçé¢
- 没æå ¨å¥çä¼è´¨é¢è§£å¯ä»¥åè
å ¶å®æä¹åå¨ç¥ä¹ä¸åçè¿è¿ä¸ªé®é¢ï¼åçå 容大æ¦æ¯æç §å¦ä¸ç±»åæ¥å·æ°ç»-> é¾è¡¨-> åå¸è¡¨->å符串->æ ä¸éå->æ ->å溯->è´ªå¿->å¨æè§å->å¾è®º->é«çº§æ°æ®ç»æï¼åä»ç®åå·èµ·ï¼åäºå 个类åé¢ç®ä¹åï¼åæ ¢æ ¢åä¸çé¢ç®ãå°é¾é¢ç®ã
ä½æè½è®¾èº«å¤å°çæåå°ï¼å³ä½¿æè¿æ ·ä¸ä¸ªæ´ä½è§åï¼å¯¹äºä¸ä½åå¦è çè³ç®æ³èæ寻æ¾åéèªå·±çé¢ç®ä¹æ¯å¾å°é¾ï¼æ¶é´ææ¬å¾é«ï¼èä¸é¢ç®è¿ä¸ä¸å®å°±æ¯ç»å ¸é¢ç®ã
对äºå·é¢ï¼æ们é½æ¯æ³ç¨æççæ¶é´æç §å¾ªåºæ¸è¿çé¾åº¦é¡ºåºæç»å ¸é¢ç®é½åä¸éï¼è¿æ ·æçææ¯æé«çï¼
æ以ææ´çäºleetcodeå·é¢æ»ç¥ï¼ä¸ä¸ªè¶ 级详ç»çå·é¢é¡ºåºï¼æ¯éé¢ç®é½æ¯æç²¾å¿çéï¼é½æ¯ç»å ¸é¢ç®é«é¢é¢è¯é¢ï¼å¤§å®¶åªè¦æç §è¿ä¸ªé¡ºåºå·å°±å¯ä»¥äºï¼ä½ 没çéï¼READMEå·²ç»æé¢ç®é¡ºåºé½æ好äºï¼æç« é¡ºåºå°±æ¯å·é¢é¡ºåºï¼æ¨ä¸ªå·å°±å¯ä»¥ï¼ä¸ç¨èªå·±åå»é¢æµ·ééé¢äºï¼
èä¸æ¯éé¢ç®æé½åäºç详ç»é¢è§£ï¼å¾æ并èï¼é¾ç¹é æè§é¢ï¼ï¼åæ£ä¸æçé¢è§£é½æ¯æå¨å¯¹åºé¢ç®çé¦é¡µï¼è´¨éæ¯æç®å ±ç¹çã
é£ä¹ç°å¨ææå·é¢é¡ºåºé½æ´çåºæ¥ï¼æ¯ä¸ºäºå¸®å©æ´å¤çå¦ä¹ ç®æ³çåå¦å°èµ°å¼¯è·¯ï¼
å¦æä½ å¨å·leetcodeï¼å¼ºç建议å æç §æ¬æ»ç¥å·é¢é¡ºåºæ¥å·ï¼å·å®äºä½ ä¼åç°å¯¹æ´ä¸ªç¥è¯ä½ç³»æä¸ä¸ªè´¨çé£è·ï¼ä¸ç¨å¨é¢æµ·è«ç¶ç寻æ¾æ¹åã
å¦ä½ä½¿ç¨è¯¥å·é¢æ»ç¥
æç §å é¢çæå顺åºï¼ä»æ°ç»å¼å§å·èµ·å°±å¯ä»¥äºï¼é¡ºåºé½å®æ好äºï¼æ顺åºå·å°±å¥½ã
å¨å·é¢æ»ç¥ä¸ï¼æ¯ä¸ªä¸é¢å¼å§é½æç论åºç¡ç¯ï¼å¹¶ä¸åæ¯æç§ä¹¦è¬çç论ä»ç»ï¼èæ¯ä»å®æä¸å½çº³éè¦çåºç¡ç¥è¯ãæ¯ä¸ªä¸é¢ç»æé½ææ»ç»ç¯ï¼æè¿ä¸ªä¸é¢çå½çº³æ»ç»ã
å¦æä½ æ¯ç®æ³èæï¼è¿ç¯æ»ç¥ä¹æ¯å¤ä¹ çæä½³èµæï¼å¦æææ¯ä¸ªç³»å对åºçæ»ç»ç¯ï¼å¿«éè¿ä¸éï¼æ´ä¸ªç®æ³ç¥è¯ä½ç³»ä»¥ååç§è§£æ³å°±éç°èæµ·äºã
**è¿éæ¯ä¸ç¯é¢è§£ï¼é½æ¯ç²¾åï¼å¼å¾ä»ç»ç¢ç£¨**ã
æå¨é¢ç®è®²è§£ä¸ç»ä¸ä½¿ç¨C++ï¼ä½ä½ ä¼åç°ä¸é¢å ä¹æ¯ç¯é¢è§£é½é æå ¶ä»è¯è¨çæ¬ï¼JavaãPythonãGoãJavaScriptççï¼æ£æ¯è¿äºçå¿å°ä¼ä»¬è´¡ç®ç代ç ï¼å½ç¶æä¹ä¼ä¸¥æ ¼ææ§ä»£ç è´¨éã
æ以ä¹æ¬¢è¿å¤§å®¶åä¸è¿æ¥ï¼å®åé¢è§£çå个è¯è¨çæ¬ï¼æ¥æ±å¼æºï¼è®©æ´å¤å°ä¼ä¼´ä»¬åçã
åå¤å¥½äºä¹ï¼å·é¢æ»ç¥å¼å§å¯ï¼go go goï¼
ååº
-
ç¼ç¨è¯è¨
-
å·¥å ·
-
æ±è
-
ç®æ³æ§è½åæ
- å ³äºæ¶é´å¤æ度ï¼ä½ ä¸ç¥éçé½å¨è¿éï¼
- O(n)çç®æ³å± ç¶è¶ æ¶äºï¼æ¤æ¶çn究ç«æ¯å¤å¤§ï¼
- éè¿ä¸éé¢è¯é¢ç®ï¼è®²ä¸è®²éå½ç®æ³çæ¶é´å¤æ度ï¼
- å ³äºç©ºé´å¤æ度ï¼å¯è½æå 个çé®ï¼
- éå½ç®æ³çæ¶é´ä¸ç©ºé´å¤æ度åæï¼
- å·äºè¿ä¹å¤é¢ï¼ä½ äºè§£èªå·±ä»£ç çå åæ¶èä¹ï¼
æ°ç»
- æ°ç»è¿äºç®åï¼ä½ä½ 该äºè§£è¿äºï¼
- æ°ç»ï¼704.äºåæ¥æ¾
- æ°ç»ï¼27.移é¤å ç´
- æ°ç»ï¼977.æåºæ°ç»çå¹³æ¹
- æ°ç»ï¼209.é¿åº¦æå°çåæ°ç»
- æ°ç»ï¼åºé´å
- æ°ç»ï¼59.èºæç©éµII
- æ°ç»ï¼å¼ååè´ä¹°åå°
- æ°ç»ï¼æ»ç»ç¯
é¾è¡¨
- å ³äºé¾è¡¨ï¼ä½ 该äºè§£è¿äºï¼
- é¾è¡¨ï¼203.移é¤é¾è¡¨å ç´
- é¾è¡¨ï¼707.设计é¾è¡¨
- é¾è¡¨ï¼206.翻转é¾è¡¨
- é¾è¡¨ï¼24.两两交æ¢é¾è¡¨ä¸çèç¹
- é¾è¡¨ï¼19.å é¤é¾è¡¨çåæ°ç¬¬ N 个ç»ç¹
- é¾è¡¨ï¼é¾è¡¨ç¸äº¤
- é¾è¡¨ï¼142.ç¯å½¢é¾è¡¨
- é¾è¡¨ï¼æ»ç»ç¯ï¼
åå¸è¡¨
- å ³äºåå¸è¡¨ï¼ä½ 该äºè§£è¿äºï¼
- åå¸è¡¨ï¼242.ææçåæ¯å¼ä½è¯
- åå¸è¡¨ï¼1002.æ¥æ¾å¸¸ç¨å符
- åå¸è¡¨ï¼349.两个æ°ç»ç交é
- åå¸è¡¨ï¼202.å¿«ä¹æ°
- åå¸è¡¨ï¼1.两æ°ä¹å
- åå¸è¡¨ï¼454.åæ°ç¸å II
- åå¸è¡¨ï¼383.èµéä¿¡
- åå¸è¡¨ï¼15.ä¸æ°ä¹å
- åæéæ³ï¼18.åæ°ä¹å
- åå¸è¡¨ï¼æ»ç»ç¯ï¼
å符串
- å符串ï¼344.å转å符串
- å符串ï¼541.å转å符串II
- å符串ï¼æ¿æ¢æ°å
- å符串ï¼151.翻转å符串éçåè¯
- å符串ï¼å³æå符串
- å¸®ä½ æKMPç®æ³å¦ä¸ªéé
- å符串ï¼459.éå¤çåå符串
- å符串ï¼æ»ç»ç¯ï¼
åæéæ³
åæéæ³åºæ¬é½æ¯åºç¨å¨æ°ç»ï¼å符串ä¸é¾è¡¨çé¢ç®ä¸
- æ°ç»ï¼27.移é¤å ç´
- å符串ï¼344.å转å符串
- å符串ï¼æ¿æ¢æ°å
- å符串ï¼151.翻转å符串éçåè¯
- é¾è¡¨ï¼206.翻转é¾è¡¨
- é¾è¡¨ï¼19.å é¤é¾è¡¨çåæ°ç¬¬ N 个ç»ç¹
- é¾è¡¨ï¼é¾è¡¨ç¸äº¤
- é¾è¡¨ï¼142.ç¯å½¢é¾è¡¨
- åæéï¼15.ä¸æ°ä¹å
- åæéï¼18.åæ°ä¹å
- åæéï¼æ»ç»ç¯ï¼
æ ä¸éå
- æ ä¸éåï¼ç论åºç¡
- æ ä¸éåï¼232.ç¨æ å®ç°éå
- æ ä¸éåï¼225.ç¨éåå®ç°æ
- æ ä¸éåï¼20.ææçæ¬å·
- æ ä¸éåï¼1047.å é¤å符串ä¸çææç¸é»éå¤é¡¹
- æ ä¸éåï¼150.éæ³¢å °è¡¨è¾¾å¼æ±å¼
- æ ä¸éåï¼239.æ»å¨çªå£æ大å¼
- æ ä¸éåï¼347.åK个é«é¢å ç´
- æ ä¸éåï¼æ»ç»ç¯ï¼
äºåæ
é¢ç®å类大纲å¦ä¸ï¼
- å ³äºäºåæ ï¼ä½ 该äºè§£è¿äºï¼
- äºåæ ï¼äºåæ çéå½éå
- äºåæ ï¼äºåæ çè¿ä»£éå
- äºåæ ï¼äºåæ çç»ä¸è¿ä»£æ³
- äºåæ ï¼äºåæ çå±åºéå
- äºåæ ï¼226.翻转äºåæ
- æ¬å¨å°ç»ï¼ï¼äºåæ ï¼
- äºåæ ï¼101.对称äºåæ
- äºåæ ï¼104.äºåæ çæ大深度
- äºåæ ï¼111.äºåæ çæå°æ·±åº¦
- äºåæ ï¼222.å®å ¨äºåæ çèç¹ä¸ªæ°
- äºåæ ï¼110.平衡äºåæ
- äºåæ ï¼257.äºåæ çææè·¯å¾
- æ¬å¨æ»ç»ï¼ï¼äºåæ ï¼
- äºåæ ï¼äºåæ ä¸éå½å¸¦çå溯
- äºåæ ï¼404.å·¦å¶åä¹å
- äºåæ ï¼513.æ¾æ å·¦ä¸è§çå¼
- äºåæ ï¼112.è·¯å¾æ»å
- äºåæ ï¼106.æé äºåæ
- äºåæ ï¼654.æ大äºåæ
- æ¬å¨å°ç»ï¼ï¼äºåæ ï¼
- äºåæ ï¼617.å并两个äºåæ
- äºåæ ï¼700.äºåæç´¢æ ç»åºï¼
- äºåæ ï¼98.éªè¯äºåæç´¢æ
- äºåæ ï¼530.æç´¢æ çæå°ç»å¯¹å·®
- äºåæ ï¼501.äºåæç´¢æ ä¸çä¼æ°
- äºåæ ï¼236.å ¬å ±ç¥å é®é¢
- æ¬å¨å°ç»ï¼ï¼äºåæ ï¼
- äºåæ ï¼235.æç´¢æ çæè¿å ¬å ±ç¥å
- äºåæ ï¼701.æç´¢æ ä¸çæå ¥æä½
- äºåæ ï¼450.æç´¢æ ä¸çå é¤æä½
- äºåæ ï¼669.ä¿®åªäºåæç´¢æ
- äºåæ ï¼108.å°æåºæ°ç»è½¬æ¢ä¸ºäºåæç´¢æ
- äºåæ ï¼538.æäºåæç´¢æ 转æ¢ä¸ºç´¯å æ
- äºåæ ï¼æ»ç»ç¯ï¼ï¼éè¦ææ¡çäºåæ æè½é½å¨è¿éäºï¼
å溯ç®æ³
é¢ç®å类大纲å¦ä¸ï¼
- å ³äºå溯ç®æ³ï¼ä½ 该äºè§£è¿äºï¼
- å溯ç®æ³ï¼77.ç»å
- å溯ç®æ³ï¼77.ç»åä¼å
- å溯ç®æ³ï¼216.ç»åæ»åIII
- å溯ç®æ³ï¼17.çµè¯å·ç çåæ¯ç»å
- æ¬å¨å°ç»ï¼ï¼å溯ç®æ³ç³»åä¸ï¼
- å溯ç®æ³ï¼39.ç»åæ»å
- å溯ç®æ³ï¼40.ç»åæ»åII
- å溯ç®æ³ï¼131.åå²åæ串
- å溯ç®æ³ï¼93.å¤åIPå°å
- å溯ç®æ³ï¼78.åé
- æ¬å¨å°ç»ï¼ï¼å溯ç®æ³ç³»åäºï¼
- å溯ç®æ³ï¼90.åéII
- å溯ç®æ³ï¼491.éå¢ååºå
- å溯ç®æ³ï¼46.å ¨æå
- å溯ç®æ³ï¼47.å ¨æåII
- æ¬å¨å°ç»ï¼ï¼å溯ç®æ³ç³»åä¸ï¼
- å溯ç®æ³å»éé®é¢çå¦ä¸ç§åæ³
- å溯ç®æ³ï¼332.éæ°å®æè¡ç¨
- å溯ç®æ³ï¼51.Nçå
- å溯ç®æ³ï¼37.解æ°ç¬
- å溯ç®æ³æ»ç»ç¯
è´ªå¿ç®æ³
é¢ç®å类大纲å¦ä¸ï¼
- å ³äºè´ªå¿ç®æ³ï¼ä½ 该äºè§£è¿äºï¼
- è´ªå¿ç®æ³ï¼455.åå饼干
- è´ªå¿ç®æ³ï¼376.æå¨åºå
- è´ªå¿ç®æ³ï¼53.æ大ååºå
- æ¬å¨å°ç»ï¼ï¼è´ªå¿ç®æ³ç³»åä¸ï¼
- è´ªå¿ç®æ³ï¼122.ä¹°åè¡ç¥¨çæä½³æ¶æºII
- è´ªå¿ç®æ³ï¼55.è·³è·æ¸¸æ
- è´ªå¿ç®æ³ï¼45.è·³è·æ¸¸æII
- è´ªå¿ç®æ³ï¼1005.K次åååæ大åçæ°ç»å
- æ¬å¨å°ç»ï¼ï¼è´ªå¿ç®æ³ç³»åäºï¼
- è´ªå¿ç®æ³ï¼134.å æ²¹ç«
- è´ªå¿ç®æ³ï¼135.ååç³æ
- è´ªå¿ç®æ³ï¼860.æ 檬水æ¾é¶
- è´ªå¿ç®æ³ï¼406.æ ¹æ®èº«é«é建éå
- æ¬å¨å°ç»ï¼ï¼è´ªå¿ç®æ³ç³»åä¸ï¼
- è´ªå¿ç®æ³ï¼406.æ ¹æ®èº«é«é建éåï¼ç»éï¼
- è´ªå¿ç®æ³ï¼452.ç¨æå°æ°éçç®å¼çæ°ç
- è´ªå¿ç®æ³ï¼435.æ éå åºé´
- è´ªå¿ç®æ³ï¼763.åååæ¯åºé´
- è´ªå¿ç®æ³ï¼56.å并åºé´
- æ¬å¨å°ç»ï¼ï¼è´ªå¿ç®æ³ç³»ååï¼
- è´ªå¿ç®æ³ï¼738.åè°éå¢çæ°å
- è´ªå¿ç®æ³ï¼968.çæ§äºåæ
- è´ªå¿ç®æ³ï¼æ»ç»ç¯ï¼ï¼æ¯é¢æ»ç»å¿ ç»å ¸ï¼
å¨æè§å
å¨æè§åä¸é¢å·²ç»å¼å§å¦ï¼æ¥ä¸å解éäºï¼å°ä¼ä¼´ä»¬ä¸è½¦å«æéï¼
- å ³äºå¨æè§åï¼ä½ 该äºè§£è¿äºï¼
- å¨æè§åï¼509.ææ³¢é£å¥æ°
- å¨æè§åï¼70.ç¬æ¥¼æ¢¯
- å¨æè§åï¼746.使ç¨æå°è±è´¹ç¬æ¥¼æ¢¯
- æ¬å¨å°ç»ï¼ï¼å¨æè§åç³»åä¸ï¼
- å¨æè§åï¼62.ä¸åè·¯å¾
- å¨æè§åï¼63.ä¸åè·¯å¾II
- å¨æè§åï¼343.æ´æ°æå
- å¨æè§åï¼96.ä¸åçäºåæç´¢æ
- æ¬å¨å°ç»ï¼ï¼å¨æè§åç³»åäºï¼
èå é®é¢ç³»åï¼
- å¨æè§åï¼01èå ç论åºç¡
- å¨æè§åï¼01èå ç论åºç¡ï¼æ»å¨æ°ç»ï¼
- å¨æè§åï¼416.åå²çååé
- å¨æè§åï¼1049.æåä¸åç³å¤´çééII
- æ¬å¨å°ç»ï¼ï¼å¨æè§åç³»åä¸ï¼
- å¨æè§åï¼494.ç®æ å
- å¨æè§åï¼474.ä¸åé¶
- å¨æè§åï¼å®å ¨èå æ»ç»ç¯
- å¨æè§åï¼518.é¶é±å æ¢II
- æ¬å¨å°ç»ï¼ï¼å¨æè§åç³»ååï¼
- å¨æè§åï¼377.ç»åæ»åâ £
- å¨æè§åï¼70.ç¬æ¥¼æ¢¯ï¼å®å ¨èå çæ¬ï¼
- å¨æè§åï¼322.é¶é±å æ¢
- å¨æè§åï¼279.å®å ¨å¹³æ¹æ°
- æ¬å¨å°ç»ï¼ï¼å¨æè§åç³»åäºï¼
- å¨æè§åï¼139.åè¯æå
- å¨æè§åï¼å¤éèå ç论åºç¡
- èå é®é¢æ»ç»ç¯
æ家å«èç³»åï¼
- å¨æè§åï¼198.æ家å«è
- å¨æè§åï¼213.æ家å«èII
- å¨æè§åï¼337.æ家å«èIII
è¡ç¥¨ç³»åï¼
- å¨æè§åï¼121.ä¹°åè¡ç¥¨çæä½³æ¶æº
- å¨æè§åï¼æ¬å¨å°ç»ï¼ç³»åå ï¼
- å¨æè§åï¼122.ä¹°åè¡ç¥¨çæä½³æ¶æºII
- å¨æè§åï¼123.ä¹°åè¡ç¥¨çæä½³æ¶æºIII
- å¨æè§åï¼188.ä¹°åè¡ç¥¨çæä½³æ¶æºIV
- å¨æè§åï¼309.æ佳买åè¡ç¥¨æ¶æºå«å·å»æ
- å¨æè§åï¼æ¬å¨å°ç»ï¼ç³»åä¸ï¼
- å¨æè§åï¼714.ä¹°åè¡ç¥¨çæä½³æ¶æºå«æç»è´¹
- å¨æè§åï¼è¡ç¥¨ç³»åæ»ç»ç¯
ååºåç³»åï¼
- å¨æè§åï¼300.æé¿éå¢ååºå
- å¨æè§åï¼674.æé¿è¿ç»éå¢åºå
- å¨æè§åï¼718.æé¿éå¤åæ°ç»
- å¨æè§åï¼1143.æé¿å ¬å ±ååºå
- å¨æè§åï¼1035.ä¸ç¸äº¤ç线
- å¨æè§åï¼53.æ大ååºå
- å¨æè§åï¼392.å¤æååºå
- å¨æè§åï¼115.ä¸åçååºå
- å¨æè§åï¼583.两个å符串çå é¤æä½
- å¨æè§åï¼72.ç¼è¾è·ç¦»
- ç¼è¾è·ç¦»æ»ç»ç¯
- å¨æè§åï¼647.åæå串
- å¨æè§åï¼516.æé¿åæååºå
- å¨æè§åæ»ç»ç¯
åè°æ
- åè°æ ï¼739.æ¯æ¥æ¸©åº¦
- åè°æ ï¼496.ä¸ä¸ä¸ªæ´å¤§å ç´ I
- åè°æ ï¼503.ä¸ä¸ä¸ªæ´å¤§å ç´ II
- åè°æ ï¼42.æ¥é¨æ°´
- åè°æ ï¼84.æ±ç¶å¾ä¸æ大çç©å½¢
å¾è®º
- å¾è®ºï¼ç论åºç¡
- å¾è®ºï¼æ·±åº¦ä¼å æç´¢ç论åºç¡
- å¾è®ºï¼ææå¯è¾¾è·¯å¾
- å¾è®ºï¼å¹¿åº¦ä¼å æç´¢ç论åºç¡
- å¾è®ºï¼å²å±¿æ°é.æ·±æç
- å¾è®ºï¼å²å±¿æ°é.广æç
- å¾è®ºï¼å²å±¿çæ大é¢ç§¯
- å¾è®ºï¼å¤å²çæ»é¢ç§¯
- å¾è®ºï¼æ²æ²¡å¤å²
- å¾è®ºï¼æ°´æµé®é¢
- å¾è®ºï¼å»ºé æ大å²å±¿
- å¾è®ºï¼å符串æ¥é¾
- å¾è®ºï¼æåå¾çå®å ¨å¯è¾¾æ§
- å¾è®ºï¼å²å±¿çå¨é¿
- å¾è®ºï¼å¹¶æ¥éç论åºç¡
- å¾è®ºï¼å¯»æ¾åå¨çè·¯å¾
- å¾è®ºï¼åä½è¿æ¥
- å¾è®ºï¼åä½è¿æ¥II
- å¾è®ºï¼æå°çææ ä¹prim
- å¾è®ºï¼æå°çææ ä¹kruskal
- å¾è®ºï¼æææåº
- å¾è®ºï¼dijkstraï¼æ´ç´ çï¼
- å¾è®ºï¼dijkstraï¼å ä¼åçï¼
- å¾è®ºï¼Bellman_ford ç®æ³
- å¾è®ºï¼Bellman_ford éåä¼åç®æ³ï¼ååSPFAï¼
- å¾è®ºï¼Bellman_fordä¹å¤æè´æåè·¯
- å¾è®ºï¼Bellman_fordä¹åæºæéæçè·¯
- å¾è®ºï¼Floyd ç®æ³
- å¾è®ºï¼A * ç®æ³
- å¾è®ºï¼æçè·¯ç®æ³æ»ç»ç¯
- å¾è®ºï¼å¾è®ºæ»ç»ç¯
ï¼æç»æ´æ°ä¸....ï¼
å大æåº
æ°è®º
é«çº§æ°æ®ç»æç»å ¸é¢ç®
- 并æ¥é
- æå°çææ
- 线段æ
- æ ç¶æ°ç»
- åå ¸æ
æµ·éæ°æ®å¤ç
è¡¥å é¢ç®
以ä¸é¢ç®æ¯éä¸ä¹éï¼å¤§å®¶è³å°è¦å·ä¸¤é以ä¸æè½å½»åºç解ï¼å¦æçç»ä»¥ä¸é¢ç®ä¹åè¿å¨æ¾å ¶ä»é¢ç®ç»æï¼å¯ä»¥åå·ä»¥ä¸é¢ç®ï¼
è¿äºé¢ç®å¾ä¸éï¼ä½æçé¢ç®æ¯åå·é¢æ»ç¥ç±»ä¼¼çï¼æçé¢è§£åé¢è¿ä¼éå½è¡¥å ï¼æ以æè¿æ²¡æå°å ¶çº³å ¥å°å·é¢æ»ç¥ãä¸äºé¢è§£çæ¥åæå®åä¸ä¸ï¼åçº³å ¥å°å·é¢æ»ç¥ã
æ°ç»
- 1365.æå¤å°å°äºå½åæ°åçæ°å
- 941.ææçå±±èæ°ç» ï¼åæéï¼
- 1207.ç¬ä¸æ äºçåºç°æ¬¡æ° æ°ç»å¨åå¸æ³ä¸çç»å ¸åºç¨
- 283.移å¨é¶ ãæ°ç»ããåæéã
- 189.æ转æ°ç»
- 724.寻æ¾æ°ç»çä¸å¿ç´¢å¼
- 34.å¨æåºæ°ç»ä¸æ¥æ¾å ç´ ç第ä¸ä¸ªåæåä¸ä¸ªä½ç½® ï¼äºåæ³ï¼
- 922.æå¥å¶æåºæ°ç»II
- 35.æç´¢æå ¥ä½ç½®
é¾è¡¨
- 24.两两交æ¢é¾è¡¨ä¸çèç¹
- 234.åæé¾è¡¨
- 143.éæé¾è¡¨ãæ°ç»ããååéåããç´æ¥æä½é¾è¡¨ã
- 141.ç¯å½¢é¾è¡¨
- 160.ç¸äº¤é¾è¡¨
åå¸è¡¨
- 205.åæå符串:ãåå¸è¡¨çåºç¨ã
å符串
- 925.é¿æé®å ¥ 模æå¹é
- 0844.æ¯è¾å«éæ ¼çå符串ãæ 模æãã空é´æ´ä¼çåæéã
äºåæ
- 129.æ±æ ¹å°å¶åèç¹æ°åä¹å
- 1382.å°äºåæç´¢æ å平衡 æé 平衡äºåæç´¢æ
- 100.ç¸åçæ å101.对称äºåæ ä¸ä¸ªæè·¯
- 116.å¡«å æ¯ä¸ªèç¹çä¸ä¸ä¸ªå³ä¾§èç¹æé
å溯ç®æ³
è´ªå¿
- 649.Dota2åè®®é¢ æé¾åº¦
- 1221.åå²å¹³è¡¡å符 ç®åè´ªå¿
å¨æè§å
- 5.æé¿åæå串 å647.åæå串 å·®ä¸å¤æ¯ä¸æ ·ç
- 132.åå²åæ串II ä¸647.åæå串å 5.æé¿åæå串 å¾å
- 673.æé¿éå¢ååºåç个æ°
å¾è®º
- 463.å²å±¿çå¨é¿ ï¼æ¨¡æï¼
- 841.é¥ååæ¿é´ ãæåå¾ãdfsï¼bfsé½å¯ä»¥
- 127.åè¯æ¥é¾ 广æ
并æ¥é
- 684.åä½è¿æ¥ ã并æ¥éåºç¡é¢ç®ã
- 685.åä½è¿æ¥IIã并æ¥éçåºç¨ã
模æ
ä½è¿ç®
ç®æ³æ¨¡æ¿
è´¡ç®è
ç¹æ¤è¿éæ¥çLeetCode-Masterçææè´¡ç®è ãæè°¢ä»ä»¬è¡¥å äºLeetCode-Masterçå ¶ä»è¯è¨çæ¬ï¼è®©æ´å¤ç读è åçäºæ¤é¡¹ç®ã
Star è¶å¿
å ³äºä½è
大家好ï¼ææ¯ç¨åºåCarlï¼å工大å¸å ï¼ã代ç éæ³å½ãä½è ï¼å åå¨è ¾è®¯åç¾åº¦ä»äºå端ææ¯åºå±ææ¯ç åã
PDFä¸è½½
æ·»å å¦ä¸ä¼ä¸å¾®ä¿¡ï¼ä¼èªå¨åéç»å¤§å®¶PDFçæ¬ï¼é¡ºä¾¿å¯ä»¥éæ©æ¯å¦å å ¥å·é¢ç¾¤ã
æ·»å 微信记å¾å¤æ³¨ï¼å¦ææ¯å·²å·¥ä½ï¼å¤æ³¨ï¼å§å-åå¸-å²ä½ãå¦æå¦çï¼å¤æ³¨ï¼å§å-å¦æ ¡-年级ãå¤æ³¨æ²¡æèªæä»ç»ä¸éè¿å¦
Top Related Projects
LeetCode Problems' Solutions
Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路)
✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解
刷算法全靠套路,认准 labuladong 就够了!English version supported! Crack LeetCode, not only how, but also why.
Everything you need to know to get the job.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot