Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The current reference solution returns suboptimal answers in some cases, for example:
As shown in the Gantt chart below, the optimal answer is no more than
(4) + (5) + (6) + (7) = 47
minutes, while the reference solution returns48
.I would add test cases as this too. Not sure ref sol deals with those correctly. Such cases skip scheduled active tasks to give priority to future active tasks on other ingredient first, after an ongoing passive one.
Needs more random tests in general, making sure also edge cases such as specified in the other issue below are generated. I was able to pass random tests with an inferior algorithm because of good dice roll.
Needs more random and fixed tests with edge cases such as below, where we need to skip certain steps of some ingredients, to eagerly take a bottleneck ingredient first:
Sorry for this useless comment, but noticed, that my implementation at certain conditions did not pass the random tests. I believe there is an error and some more test cases required.
I have a question
What happens when attackers enter the trench and get defeated?
suppose the attack is:
"ss "
"--|dzp|"
as d is 2 but also the first one in the trench it's defending power becomes 4 successfully defending.
but now what?
what will be it's attacking power?
will it be (4 - 2) or (2 - 2), as you've said "it's not allowed to use more points than usual."?
The reference solution in Go differs from other languages.
Doing the C-version.
I would have appreciated larger sized fixed tests.
The jump from 6 entries to 100-200 sized non-repeatable random tests makes it perhaps somewhat unnecessary hard to debug.