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.
Tests in python report that they are testing for a certain
target_case
, but are often actually testing for a completely differenttarget_case
. (The actualtarget_case
passed to the user's function is different than thetarget_case
reported in theit
block message).Tests in python also run the user solution 3 times, followed by 3 tests, making logs look more confusing than they need to be if the user tries to log anything in their solution.
running
print(identifier, target_case)
produces the following output (The lines under "Log" are what my code printed, the other lines are theit
block messages:I think I'm making a mistake with the random tests, because 550 warriors were able to solve the task in Python:
This is the error message:
Can someone please help me?
Prolog translation
It is necessary to add to the condition that the Euclidean distance must be rounded down before comparing with the radius, otherwise this was not initially described in any way.
Description is unclear and one cannot figure out what he is supposed to do from the very poor basic tests. Euclidean distance implies continuous (non integer) values, so we don't know how we're supposed to calculate the number of characters to fill. Please state clearly what we're supposed to do, or at least add more basic tests.
Add
-Wincomplete-patterns, -Werror=incomplete-patterns
GHC flags.It will make some unfair tricks unavailable.
Can anyone help me with generating testcases with random types? Template Haskell may make this possible, but I don't know Template Haskell.
This seemed like a good place to find people who know it though. :P
This question concerns a prospective Haskell translation of Join until impossible. I have posted this question there, as well as on several CodeWars Gitter fora. Feel free to react anywhere.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Is the trailing new line really necessary?