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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Oh god, how I missed how the boolean logic should work :/
It would be nice to have a test on these, the other functions are straightforward if you know their haskelly equivalents.
I do not understand the type of these functions:
Why isn't it:
?
Thanks, I just fixed this!
Ah! Makes more sense, will try that!
I did see your comment and follow it. However, there are cases where the following are both valid solutions:
In that case, both solutions are valid, and both have the same width for the "first" element.
This is not sufficient, I am generating valid solutions where the first element is as large as the expected one, but that differ from the expected solution.
Not sure that is so surprising, there certainly are others ^^
I get the following failure with the full test cases:
Apparently my program returns an empty list, which seems to be the correct answer, but the test case expects
Nothing
.Thanks! Just modified the kata.
Strange, I can't reproduce it but I had to do this to have my solution pass :
Typo in the tests with
reapeat
.This comment is hidden because it contains spoiler information about the solution
Loading more items...