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.
the test cases sort a list of
PokerHand
classes, and you need to sort them based on the hand value.ah crap, I actually don't understand it too; I pass example test cases but the random test cases just say "failed at test n".
I'm confused, what?
Python: I feel like it could be made a bit clearer what you're supposed to do in terms of returning a sorted value. Are you supposed to define a sort function? Are you supposed to put something in init? Are you supposed to use functools?
If this is part of the kata, then sure, but I feel it could be better specified.
Yeah, this description is a pain. Also allocating the remaining residual seats after combinations have been handled is a complete mystery. I wanted to solve this kata out of loving memory for Pim, but F it, just not worth it.
Haskell setup code shows
BullDS
for the bulls-eye return value when the actual value should beSingleBullDS
man. someone else always came up with such elegant solutions.
Interesting and funny kata to learn and understand some new concepts.
@mmangiamusardo please mark your post as having spoiler content next time.
This comment is hidden because it contains spoiler information about the solution
for input {2,2,1,3,2,2,3,1,1,2,2,3,3,2,1,3} my algorithm produces valid solution {{1,3,4,2},{4,2,1,3},{3,4,2,1},{2,1,3,4}}
yet the test says it's wrong.
Enjoyable coding challenge, congratulations.
For what it's worth, from my perspective I thought it was pretty clear. I wonder what you think is poorly explained?
Had to make a web app so that I could visualize & interact with the problem, but after that I was able to find a solution. Very fun kata, not like any I had done before, +1
Well now I feel silly.
I don't think the problem is well explained at all.
So, that's it! Thanks, now totally explained.
In all of the initial tests Hands are created, tested once and then freed. That let me to the assumption that it would always be that way. My mistake. Thanks again.
Loading more items...