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.
Although extremely rare, the random tests have a chance of producing incorrect expected values if the generated random
substring
happens to repeat itself (ex:bzbz
,earear
). The chances of this happening are super low, but seeing how the readability of the random tests in this kata is low, could this be a case where it would be more readable + foolproof to make use of a reference solution instead of trying to completely pregenerate the output?fixed
fixed
duplicate of this issue
Java - randomTests and testsWithOverlaps - some test cases have incorrect expected values.
Note for the reader: filtering at each step is bad.
Reraised as an issue
Description should be language-agnostic (in function name and examples)
Java:
pythonic code
Pretty difficult and complex kata for being ranked a 6th kyu, very well thought.
might be interested:
http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata
Because of the
sorted
bit,a == c
meansa == b == c
, so the equilateral condition can bea == c
and the isosceles condition can bea == b or b == c
.TL;DR, it all depends on who you are writing the code for. Personally, I enjoyed it but wouldn't write it.
This feels like an age old argument between concise and readable code. To a complete beginner this would not be very useful or accessible. For me, knowing some JS and a week into learning Python, it is not readable but fun and interesting to dissect and understand, and it helps me to learn. Thank you. And I can easily understand that this becomes quite obvious with time.
This comment is hidden because it contains spoiler information about the solution
Loading more items...