Loading repository data…
Loading repository data…
liuyubobobo / repository
My Solutions to Leetcode problems. All solutions support C++ language, some support Java and Python. Multiple solutions will be given by most problems. Enjoy:) 我的Leetcode解答。所有的问题都支持C++语言,一部分问题支持Java语言。近乎所有问题都会提供多个算法解决。大家加油!:)
I will put my solutions to Leetcode Problems in this repo. Every problem will be solved in C++; part of the problems will be solved in Java also. I will try my best to support more language in the future :)
Please feel free to contact me if you have any questions with this repo:)
email: liuyubobobo@gmail.com
大家好,欢迎大家来到我的 Leetcode 算法题解代码仓。在这个代码仓中,近乎每一个问题都会使用多种方式进行解决,同时标注了简明的算法思想,时间复杂度和空间复杂度。所有问题都会使用C++进行解决,各别问题支持Java语言和Python语言。
如果对代码仓有任何问题,欢迎联系我:)
知乎: 刘宇波 http://www.zhihu.com/people/liuyubobobo
知乎专栏:是不是很酷 https://zhuanlan.zhihu.com/liuyubobobo
个人公众号:是不是很酷:)
知识星球(免费)
LeetCode Database 题解代码仓:Play Leetcode Database
| ID | Problem | OfficialSolution | C++ | Java | Python |
|---|---|---|---|---|---|
| 001 | Two Sum | solution | C++ | Java | |
| 002 | Add Two Numbers | solution | C++ | ||
| 003 | Longest Substring Without Repeating Characters | solution | C++ | Java | |
| 004 | Median of Two Sorted Arrays | solution | C++ | Java | |
| 005 | Longest Palindromic Substring |
| solution |
| C++ |
| 006 | Zigzag Conversion | solution | C++ |
| 007 | Reverse Integer | solution | C++ |
| 008 | String to Integer (atoi) | solution | C++ |
| 010 | Regular Expression Matching | solution | C++ |
| 011 | Container With Most Water | solution | C++ |
| 012 | Integer to Roman | [无] | C++ |
| 013 | Roman to Integer | [无] | C++ |
| 014 | Longest Common Prefix | [无] | C++ |
| 015 | 3Sum | [无] | C++ |
| 016 | 3Sum Closest | [无] | C++ |
| 017 | Letter Combinations of a Phone Number | solution | C++ | Java |
| 018 | 4Sum | [无] | C++ |
| 019 | Remove Nth Node From End of List | solution | C++ | Java |
| 020 | Valid Parentheses | solution | C++ | Java |
| 021 | Merge Two Sorted Lists | solution | C++ |
| 022 | Generate Parentheses | solution | C++ | Java | Python |
| 023 | Merge k Sorted Lists | solution | C++ |
| 024 | Swap Nodes in Pairs | [无] | C++ | Java |
| 025 | Reverse Nodes in k-Group | [无] | C++ |
| 026 | Remove Duplicates from Sorted Array | solution | C++ |
| 027 | Remove Element | solution | C++ |
| 028 | Implement strStr() | [无][缺:完整BM算法, 其他模式匹配算法] | C++ |
| 029 | Divide Two Integers | solution[缺:不使用乘法加法除法] | C++ |
| 030 | Substring with Concatenation of All Words | solution | C++ |
| 031 | Next Permutation | solution | C++ |
| 033 | Search in Rotated Sorted Array | solution | C++ |
| 034 | Search for a Range | solution | C++ |
| 035 | Search Insert Position | solution | C++ |
| 036 | Valid Sudoku | solution | C++ |
| 037 | Sudoku Solver | solution[缺:Dancing Links] | C++ | C++ |
| 038 | Count and Say | [无] | C++ |
| 039 | Combination Sum | [无] | C++ |
| 040 | Combination Sum II | [无] | C++ |
| 041 | First Missing Positive | solution | C++ |
| 042 | Trapping Rain Water | solution | C++ |
| 043 | Multiply Strings | solution | C++ |
| 045 | Jump Game II | solution | C++ |
| 046 | Permutations | solution[缺:排列算法整理] | C++ | Java |
| 047 | Permutations II | [无] | C++ |
| 048 | Rotate Image | [solution](https:// |