This repository makes it easy for problem-setters to bulk edit test-cases.
This repository was mainly targeted to help HackerRank.com problem-setters to bulk edit test-cases. But if you can do some very very tiny modification, it can be useful for other problem-setter's too.
Imagine you have made 30 test cases with 1-based indexing, now for some reason you need to modify them all. This script makes it as easy as just reading and writing inputs.
Imagine all your test cases contains 3 integers on the same line. You need to modify the files and put them on separate lines. The screenshot below shows how to do it:
Simple, isn't it?
- Install a C++ compiler in your computer.
- Clone the repository
- Put your input files in input directory, by default they must be named input00.txt, input01.txt, input02.txt etc.
- Open Main.cpp in your favorite IDE.
- Modify the editInput method. There are comments and examples in the cpp file to help you out.
** Code of this repository contains C++11 feature. If your compiler is in C++03 mode you need use the flag -std=c++11
while compiling.**
-
My input file names are not like the default names. What should I do?
- You can just change the Folder or File Prefix from the 'Default File Folder Names' portion at the top.
Have an awesome improvement idea? Fixed a bug? Feel free to make a pull request.
Email: [email protected]