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.
Your dynamic solution is no longer working.
You are correct, i changed it Thanks
https://www.codewars.com/kata/reviews/673c9338222dde58f86b50f8/groups/673c991f9f511a10bbc090bb
Maybe you mean, must not reach 30?
Yes :)
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
.Why the artificial restriction on empty lists? There's nothing wrong with them, they can be sorted perfectly fine.
Please allow empty lists as input.
Done.
Can you explain in a more detailed way? Because I did not recognize any issue with name
Done.
done
Function name is incorrect (different from imports)
thank you!
I will design random tests.
The kata is not about bubble sort. Bubble sort is just arbitrary solution. Kata is about to implement your own sorting algorithm.
Loading more items...