https://github.com/brainstone/leetcode
This little project is a template for running LeetCode problems locally in your CLion installation.
https://github.com/brainstone/leetcode
cmake cpp cpp20 leetcode leetcode-cpp template
Last synced: 4 months ago
JSON representation
This little project is a template for running LeetCode problems locally in your CLion installation.
- Host: GitHub
- URL: https://github.com/brainstone/leetcode
- Owner: BrainStone
- License: gpl-3.0
- Created: 2024-01-08T07:15:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-11T12:00:59.000Z (over 1 year ago)
- Last Synced: 2024-12-31T08:45:38.122Z (5 months ago)
- Topics: cmake, cpp, cpp20, leetcode, leetcode-cpp, template
- Language: C++
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LeetCode C++ Template
This little project is a template for running LeetCode problems locally in your CLion installation.
## Usage
- Install the [LeetCode Editor](https://plugins.jetbrains.com/plugin/12132-leetcode-editor) plugin
- Configure the plugin and log in to your account as you normally would
- Configure the `problems` folder as the `TempFilePath` of the plugin
- Copy the templates from the `templates` folder into the respective templates of the plugin
- Start solving problems and enjoy each problem being locally debuggable### Caveats
Since C++20 doesn't have reflection
- Be sure to reload CMake after each new project
- Be sure to make the entry function look like this:
```c++
class Solution {
// ...
public:
()
// ...
};
```
- Be sure to reload CMake after changing the entry function's parameter types (like for example by changing `string`
to `const string&`)