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
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
- 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)
- 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)