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
Also, I don't think this solution accounts for wheel straights either. Basically, just need more test cases to invalidate solutions like these.
Yep. This would make this not a "great solution".
Great solution.
But I'm not quite sure the cheking for straight (numbers_in_sequence) is true.
You check it by the sum of the card, so if you have [3,4,5,6,7] the sum equals 25, so the function returns true.
BUT, if you have [3,3,5,7,7] the sum is the same - 25, so you'll get it as a stright, while it's not.
Then again, exploring your code was a lot of fun! :D
Looking back on it, I could have put some comments in .. :P
Pure awesome, thank you!!
Thanks, I added the second 'abc' test.
I didn't add the '' characters test as there's a valid hash for the empty string.
Ok thanks for checking...
I have no clue. I can't find any either.
It may just be CodeWars acting strangely (again).
This comment is hidden because it contains spoiler information about the solution
Doesn't help to make this kata more complicated...;-) There's a new testcase, so marked it as resolved...
This comment is hidden because it contains spoiler information about the solution
Awesome, thank you for the quick help @rollietikes !
Loading more items...