Skip to content

A repo for solutions i write to competitive problems. Language depends on my mood deal with it!

Notifications You must be signed in to change notification settings

patheticGeek/competitive-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Competitive code

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.

Languages I'm using:

  • C & C++

  • Python

Extentions used:

  • 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

Some additional config for VS Code

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:

  1. CTRL + SHIFT + P
  2. Start typing Preferences: Open Settings (JSON)
  3. Select the first option

About

A repo for solutions i write to competitive problems. Language depends on my mood deal with it!

Resources

Stars

Watchers

Forks