KO
|
EN
gitlite — search
Search
#javascript
#java
#python
#wordpress
#php
#rust
#android
#elixir
#discord
#discord-bot
#nodejs
#jekyll
LeetCode
★ 52
Open GitHub ↗
Debug LeetCode C/C++ problems locally.
Download README (.md)
Explore Similar Repositories
LeetCode_problem-and-solution
:
[README请点击这里](https://github.com/Zhenghao-Liu/LeetCode_problem-and-solution/blob/master/README.md)
Clearest-LeetCode-Cpp-Solutions
:
Clearest LeetCode C++ Solutions. 本项目追求思路清晰,代码简洁。This project is intended to clarify the general problem solving ideas
vscode-leetcode-cpp-debug
:
Debug support for LeetCode with C++
daily43-cpp
:
DAILY43: Algorithmic Problems for Coding Interviews: Easy level, C++ edition
leetcode-cpp
:
使用 Bazel 构建,googletest测试,gcov测试覆盖率。安心刷LeetCode
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
LeetCode
?
Download (.md)
# LeetCode C++ 本地调试环境 [](https://github.com/Pokerpoke/LeetCode/actions) **注** 适用于Ubuntu/WSL 详细用法参见[使用VSCode进行LeetCode C++本地调试](https://github.com/Pokerpoke/LeetCode/blob/master/doc/%E4%BD%BF%E7%94%A8VSCode%E8%BF%9B%E8%A1%8CLeetCode%20C%2B%2B%E6%9C%AC%E5%9C%B0%E8%B0%83%E8%AF%95.md) ## 依赖 - cmake - googletest - Ubuntu20.04及以上执行:`sudo apt install build-essential cmake libgtest-dev` ## 创建新git分支 项目为了不污染master分支,解答放到了solutions分支下,如果直接fork过去可以直接在master分支上提交题解,单独创建solutions分支也可以。 ## 生成模板并调试运行 通过复制或者提供的脚步生成模板,将会在`src`目录下生成相应模板,根据题目进行修改相关函数名称即可。 脚本使用`${ID}.${SOLUTION_NAME}.cc`的方式创建文件 ```shell ./generate_template ${ID}.${SOLUTION_NAME} ``` 调试运行,执行脚本或者在VSCode中点击CMake扩展的Debug按钮。 ```shell ./leetcode ./src/${ID}.${PROBLEM_NAME} ```