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.
That's a very nice test-map.
I run a 10^6 simulations of a try-random-move-from-options-at-any-point solver and it finds the solution roughly once in 4000 attempts.
It helped me avoid trying a lot of bad heuristics, and to find a relatively elegant approach to the puzzle.
I don't have an idea for an algorithm that would be significantly faster than a naive solution.
if you do then go ahead and create a performance version :)
This comment is hidden because it contains spoiler information about the solution
As I recently mentioned on discord, I changed my mind. Do what you think is the best
I don't understand what i'm supposed to do with the suits. I don't understand how are some not isomorphic and some are. The hand rank does not change
These boards aren't isomorphic:
So the hearts on the first board aren't isomorphic to any suit on the second board
I didn't quite understand this part. If you change
3h
to3c
in the first suit, they become the same, hence isomorphic, and there are no otherh
's in the first suit. Is it the problem with the second suit, where if you swapc
withh
,8h
and8c
become different? Or anything else?Thanks!
I have fixed the missing suits for the example
This is mentioned in the problem description. I have added the fixed tests for this example (there was one actually - that tested full deck of cards in two different orders, but I added some better examples to the flop section.
This kind of situation only appears in the final tests :
In the fifth example , the 4 shouln't be there or should be followed by something.
Wait, one-to-one mapping does mean it's both ways, nevermind
"isomorphism" kinda implies that, but yeah, a "bidirectional" here or there could help.
Does not imply that it should work both ways. And I'm finished yet, so should it?
Thank you. This comment saved me a lot of time!
Fixed also in the sample tests.
Expected and actual are in the wrong order in the sample tests.
Loading more items...