You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I belive that would be good to have a folder with some default inputs and outputs, so anyone that wants to add some solution in any given language must post with it the outputs of his code too, its kind important to have some sort of validation to the added codes.
My idea is to create a folder with numbered folders in it, related to the number of the test, so if exists 20 tests, the folder tests will contain 20 folders numbered from 1 to 20.
stalin-sort/tests/1...20
In each of this folders will exist 2 .txt files, one called input and other one called output. This files will contain numbers with pipes ( | ) between them.
EXAMPLE
stalin-sort/tests/1
input.txt
1|2|3|4|5|2
output.txt
1|2|3|4|5
The text was updated successfully, but these errors were encountered:
# make test folder
mkdir test# create 20 test files# 1. Vertical (Each number is separated by a break line)
seq 20 |whileread i;do shuf -rn100 -i1-1000 > test/$i;done# 2. Horizontal (Each number is separated by a space)
seq 20 |whileread i;do shuf -rn100 -i1-1000 | xargs > test/$i;done
I belive that would be good to have a folder with some default inputs and outputs, so anyone that wants to add some solution in any given language must post with it the outputs of his code too, its kind important to have some sort of validation to the added codes.
My idea is to create a folder with numbered folders in it, related to the number of the test, so if exists 20 tests, the folder tests will contain 20 folders numbered from 1 to 20.
stalin-sort/tests/1...20
In each of this folders will exist 2 .txt files, one called input and other one called output. This files will contain numbers with pipes ( | ) between them.
EXAMPLE
stalin-sort/tests/1
input.txt
output.txt
The text was updated successfully, but these errors were encountered: