Skip to content

It download test cases of coding problems from the platform and adds template according to your coding language.

License

Notifications You must be signed in to change notification settings

saurabhkumar23/coding-companion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CODING COMPANION

You can save your time during contest time. You don't have to write the testcases again and again. It will also create templates which will save a lot of time. This setup will download all of your testcases from the contest.

  • supported coding platforms:
    • Codechef
    • Codeforces
    • Leetcode
    • Atcoder

Setup/Installation

Open your Terminal/Command in the directory for the project and run these commands.

git clone "https://github.com/saurabhkumar23/coding-companion.git"
cd coding-companion
npm install #install the dependencies from package.json

Usage

  • run this command on your terminal:
    • $npm link
    • $give-testcases
  • give your coding platform (codeforces/codechef/leetcode/atcoder)
  • for leetcode, you need to give your leetcode credentials.
  • give your contest id. (you will find it on your contest URL. the id written at the end of the url) image image image image
  • choose your coding language (cpp/java/python).
  • now, script will handle everything:
    • will visit all the problems of the contest.
    • download their testcases.
    • create multiple directories A B C D E inside the Problemset directory depending on the number of problems in contest. directory flow will look like this:
      • code/codeforces/1492/A
    • each directory created will have
      • input.txt : containing problem inputs.
      • output.txt : containing problem outputs.
      • your_input.txt : testing your code.
      • your_output.txt : testing your code.
      • for eg:- A.cpp : of choosen template (cpp/java/python)

About

It download test cases of coding problems from the platform and adds template according to your coding language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages