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.
test cases might help to understand the question.
Funny kata to practicing sort. Thanks.
This comment is hidden because it contains spoiler information about the solution
Genius ! Algrithme is the king.
inspired.
A few more line might improve performance a lot for some cases, but may destroy the beauty of your wonderful codes, and look ugly definately.
From engieering point of view, I would believe a few more lines is better.
It is a little difficult to understand, my ugly version might be a little easier for most of us(not every one is number master)
Clever !
I have simillar idea, but you code is super tidy and clean !
Hi, good Kata. please put x =0 or y=0 in the test casees. IsDiv(n, x,y).
best solutions voted has a bug if x=0 or y =0.
It is a clever solution and fast, you know numbers well !
However, for beginners, list related method need to be trianed as well, even though performance is poor.
Surprinsingly, it is fast !!!
For better performance. a few more line code.
More Lines, but efficient !
please put the test case into base test. some of the best solution have bugs.
Test.assert_equals(cat_mouse('C.D....m..................', 6), "Protected!")
This comment is hidden because it contains spoiler information about the solution
This kata is quite difficult, and should be marked as 4kyu or 3 kyu.
It seams that test case like "1.2.3.04" or "1.2.3.00", "123.89.09.1" is missing. the best solutions with re, have bugs.
Would suggest to add test case:
Test.assert_equals(is_valid_IP('12.255.56.01'), False)
nice kata! I would suggest a comment for the example, to make the descriptio easier to understand :
s = "aqdf& 0 1 xyz 153 777.777" must return "0 1 153 154 Lucky" where 154 = (0 + 1 + 153)
It taken me hours to understand why threre is a 154.
Loading more items...