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.
done
My rust translation shows both. You get the u8 bytes and the same data decoded as a Latin1 string.
(I meant to mark this suggestion as resolved, hereby).
I've now published my translation, see the new suggestion I made.
I've created a new translation; the tests in the translation were partially based on yours but I extended them (adding the advanced and random tests, as well as several corrections made to the general kata test suites). I also re-used your starting template.
My translation features an optimising BF interpreter that matches and exceeds the optimisations made in the other kata translations here.
I might pick this up at some point. I already started on a Rust version, your version could be helpful in accellerating the process.
I've fixed this across all translations, by escaping the quote:
Got the answer, kept for posterity to clarify the rule on defender bonus calculation:
"M attack. R Power 4. R wins
Go to the trench
P has power 3 of the L team. It gets the trench defense bonus 6 so it wins. 2 remains after the successful defense.
2 points is less than the original 3 so it keeps 2 power
It overpowers first s and losses 1 power point keeping 1.
Overcomes the second s with a draw and retreats. The next s wins its position"
Can someone explain why with this input:
the expected output is
R|LLLR
(notR|LLLL
)?Haskell fork that updates the random test generation to avoid generating numbers with exponents.
Sorry for offtop, but what software you used to generate this image? I was looking for something like that for a while
My solution is just an optimized version of permutating active tasks and calculating minimum time needed, so it's supposed to work.
How does your algorithm fare on this test case?
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.
Loading more items...