Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: lbc1752/leetcode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: soulmachine/leetcode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
Loading
7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "TeX Live",
"image": "soulmachine/texlive:latest",
"extensions": [
"James-Yu.latex-workshop"
]
}
31 changes: 31 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "lettcode-C++",
"type": "shell",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"leetcode-cpp.tex"
],
"options": {
"cwd": "${workspaceFolder}/C++/"
}
},
{
"label": "lettcode-Java",
"type": "shell",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"leetcode-java.tex"
],
"options": {
"cwd": "${workspaceFolder}/Java/"
}
}
]
}
Binary file added C++/.DS_Store
Binary file not shown.
10 changes: 6 additions & 4 deletions C++/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#C++版
-----------------
**下载**:<a href="https://github.com/soulmachine/leetcode/raw/master/C%2B%2B/LeetCodet%E9%A2%98%E8%A7%A3(C%2B%2B%E7%89%88).pdf">LeetCode题解(C++版).pdf</a>
# C++版

书的内容与Java版一摸一样,不过代码是用C++写的。本书的代码使用 C++ 11 标准。
## 编译

```bash
docker run -it --rm -v $(pwd):/project -w /project soulmachine/texlive xelatex -interaction=nonstopmode leetcode-cpp.tex
````
Loading