LeetCode
💡 LeetCode in C++23/Java/Python/MySQL/TypeScript (respect coding conventions)
💡 Solutions to LeetCode in C++23, Java, Python, MySQL, and TypeScript. This repository aims to provide code with good readability and consistent style over various topics and embraces new standards. The project is written primarily in C++, distributed under the MIT License license, first published in 2019. It has gained significant community traction with 1,325 stars and 454 forks on GitHub. Key topics include: cpp, cpp20, java, leetcode, leetcode-cpp.
<br/>
<br/>
<br/>
<br/>
Getting Started
See the built page here: LeetCode Solutions.
Coding Style and Naming
Please see the style guide.
Formatting
| Language | Formatter | Style Guide | Configuration |
|---|---|---|---|
| C++ | ClangFormat | Google C++ Style Guide | .clang-format |
| Java | ClangFormat | Google Java Style Guide | .clang-format |
| Python | autopep8 | Google Python Style Guide | Passing --indent-size=2 for a better viewing experience in mobile devices. |
| TypeScript | Prettier | Google TypeScript Style Guide | .prettierrc |
| MySQL | N/A | N/A | N/A |
Fun Facts
This website went live on February 23, 2019.
Contributing
This repository is a personal project and does not accept pull requests to
maintain consistency in coding style and solutions. However, feel free to fork
the repository and modify it as needed!
License
Licensed under the MIT License, Copyright © 2019-2026
P.-Y. Chen.
Contributors
Showing top 1 contributor by commit count.
