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.
fïxed
Is not a very useful message!
mmhm, perhaps :)
Could be another kata...?
Nice kata on dynamic programming as well except for math and combinatorics.
I also think you enjoy generating these gravestones ;)
Yeah. To confuse the devil.
This comment is hidden because it contains spoiler information about the solution
this is easy enough to work around of course. but it's very, very user-unfriendly to enforce the restrictions this way.
there should also have been a separate test block enforcing the restrictions with normal test failures, instead of the fugly exceptions that are being raised in the course of functionality testing.
ETA:
sort_array = sorted
, which is a valid solution apart from the restrictions, raises the following exception:that's apparently a test error, not a code error. that's just one ( but very bad ) way in which the restrictions enforcement absolutely s*cks.
unrelated, but I'll mention it here because the kata is retired anyway: there is absolutely no reason to use a fscking BubbleSort as the reference solution. you could just have used the native
sort
- it's not forbidden from testing!but kata depending on forbidding native methods are almost always a bad idea anyway ( which you had been told ).
Look at B4B's modules forbidder.
sort
.done
There are annoying deprecation messages :
The last two sample tests need to be changed :
n_vals = [[1, 0], [2, 3], [3, 18], [4, 60], [5, 150], [342, **420115062**], [56753, **386209565**]]
Cool one!
Another curious number :
496
, there are so few...Loading more items...