推荐在中文网来刷:https://leetcode-cn.com/problemset/all/
注:推荐按tag来刷。如链表,二叉树,回溯,深度宽度优先遍历,图,贪心,动规,数组,哈希表……每个tag由easy到hard,每道题先自己思考,不会的参考了一个开源的解答或者参考Discuss或者博客。开始的时候自己独立思考的时间比较长,后来没了耐心,不会的题目就马上看解答了。
- 正式刷题(按tag来刷)
# | title | 标题 | Code | Difficulty |
---|---|---|---|---|
1 | Two Sum | 两数之和 | C++ Python | 简单(easy) |
4 | Median of Two Sorted Arrays | 两个排序数组的中位数 | C++ Python | 困难(hard) |
26 | Remove Duplicates from Sorted Array | 删除排序数组中的重复项 | C++ Python | 简单(easy) |
# | title | 标题 | Code | Difficulty |
---|---|---|---|---|
1 | Two Sum | 两数之和 | C++ Python | 简单(easy) |
- (推荐)haoel/leetcode: 含原 LeetCode题目链接和 C++解决方案
- (推荐)pezy/LeetCode: LeetCode solutions in C++ 11 and Python3
- (推荐)LeerCode题解:在线题解,分类别,且有PDF
- (推荐)soulmachine/leetcode: 含有151道LeetCode题解(C++和JAVA编程语言实现),附LeetCode题解(C++版).pdf
- zhuli19901106/leetcode-2
- (推荐)kamyu104/LeetCode: Python / C++ 11 Solutions of All 987 LeetCode Problems
- LeetCode : LeetCode 面试题(中文讲解)
- pezy/LeetCode: LeetCode solutions in C++ 11 and Python3
- LeetCode10Py: 旨在用10行Python代码解决问题
- leetcode: JAVA实现了LeetCode题解,但木有原题目链接
- (官网刷题)https://leetcode.com/
- (官网中国区刷题)https://leetcode-cn.com/
- (在线题解,含PDF)LeerCode题解