Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

Play-Leetcode

> 编程语言
Open source

My Solutions to Leetcode problems. All solutions support C++ language, some support Java and Python. Multiple solutions will be given by most problems. Enjoy:)

2.7K stars0 likes0 views
WebsiteGitHub

About

My Solutions to Leetcode problems. All solutions support C++ language, some support Java and Python. Multiple solutions will be given by most problems. Enjoy:)

My solutions to Leetcode

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: [email protected]


大家好,欢迎大家来到我的 Leetcode 算法题解代码仓。在这个代码仓中,近乎每一个问题都会使用多种方式进行解决,同时标注了简明的算法思想,时间复杂度和空间复杂度。所有问题都会使用C++进行解决,各别问题支持Java语言和Python语言。

如果对代码仓有任何问题,欢迎联系我:)

电子邮件:[email protected]

知乎: 刘宇波 http://www.zhihu.com/people/liuyubobobo

知乎专栏:是不是很酷 https://zhuanlan.zhihu.com/liuyubobobo

个人公众号:是不是很酷:)

知识星球(免费)


其他相关代码仓

  • 《算法与数据结构》课程, 代码仓: Play-with-Algorithms

  • 《玩转算法面试》课程, 代码仓: Play-with-Algorithm-Interview

  • 《看得见的算法》课程, 代码仓: Play-with-Algorithm-Visualization

  • 《玩转数据结构》课程, 代码仓: Play-with-Data-Structures

  • 《玩转图论算法》课程, 代码仓: Play-with-Graph-Algorithms

  • LeetCode Database 题解代码仓:Play Leetcode Database

Problems

ID Problem Official
Solution
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 [C++

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++algorithm-challengesalgorithm-competitionsalgorithmsinterview-questions

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言