Problems: katas on Codewars
Note: Requires Python >= 3
TLDR: Execute python driver.py ProblemA
to test the solution to ProblemA
against all the test cases.
- (Optional): Source into a virtual environment to ensure Python >= 3 is invoked with the
python
command. - Copy
template.py
into/solutions
and rename it. - Filename should be one-word.
- Example:
ProblemA.py
- Example:
- This one's important: Write the solution in the
solve()
method insideproblemA.py
. - Make sure the drivers return the result in
ProblemA.py
.
- Fill in the input for test cases
1, 2, ...
by creatingProblemA1.in, ProblemA2.in, ...
insidedata/input
. - Fill in the expected output for test cases
1, 2, ...
by creatingProblemA1.out, ProblemA2.out, ...
insidedata/output
. - To execute all the tests, simply execute
python driver.py ProblemA
in the shell.
- (5 kyu) Directions Reduction : Solution
- (5 kyu) Prime Operations : Solution