DEV Community

Cover image for Competitive programming helper
Rajat Negi
Rajat Negi

Posted on

7

Competitive programming helper

How to setup Competitive programming Helper in VSCode

This is a very handy tool if you are solving problems on competitive sites like HackerRank, HackerEarth, Codeforces etc. Saves you considerable amount of time while debugging your code.

What you need :

Steps after installing above pieces of software:

  • In your vscode open the folder where you want to solve the problem.
  • Go to the problem page you want to practice/solve/whatever (i will be showing codeforces).
  • Now press the green plus sign extension (that comes after installing Competetive Companian extension).

Alt Text

  • Go to vscode where you will be prompted to select your language of choice. A file with the problem-name.lang-extension will be created, with testing tab open adjacent.

Alt Text

  • Run using Run All button. Alt Text

Features

  • The default test cases are preloaded.
  • You can run the file with few clicks.
  • Can add custom test cases with +New button.
  • Easy to use.

Sources:
https://github.com/agrawal-d/cph
https://github.com/jmerle/competitive-companion
Cover Photo by Zan on Unsplash

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay