Checkout the
starter-code
branch if you want starter code without my answers.
A repo containg some juicy CP code I'll be writing while starting to get into DSA. Hopefully I'll stay sane and keep my code formatter on so that i don't sin and write unredable code.
I've added launch config and stuff so that you dont have to painfully setup debugging and support in VS Code. BEWARE tho, I use linux so you might wanna tweak files in .vscode
folder for windows & mac. The testcases are stored in .cph
folder.
Just create a file and you're good to go. Add test cases in CPH Judge and they're saved too for later use.
-
C & C++
-
Python
-
C/C++: For C & C++ support and formatting
-
Python: For python support
-
Pylance: For python formatting
-
CPH Judge: For running test cases automatically and saving them
You might wanna add the following in your settings.json
file to language specific stuff.
"editor.wordWrapColumn": 140,
"editor.formatOnSave": true,
"python.languageServer": "Pylance",
"[cpp]": {
"editor.tabSize": 4,
"editor.defaultFormatter": "ms-vscode.cpptools",
},
"[c]": {
"editor.tabSize": 4,
"editor.defaultFormatter": "ms-vscode.cpptools",
},
"[python]": {
"gitlens.codeLens.symbolScopes": [
"!Module"
],
"editor.defaultFormatter": "ms-python.python"
},
If you dont know how to open settings.json
here ya go:
CTRL + SHIFT + P
- Start typing
Preferences: Open Settings (JSON)
- Select the first option