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.
I was trying a solution that would calculate the ratio the cut-off point as following:
sqrt(shortestDot * longestDash)
, where dashes have to be strictly higher. I considered it a good idea as it allows both dot and dash the same ratio of error.But my simple heuristic with dividing the longest dash by two worked a lot better for the most part, and combined with a few more heuristics, I covered it all but the weird case where
"1001"
is supposed to mean". ."
, quite inconsistently with the4 kyu
Kata. So I kinda gave up on trying a more interesting solution and I agree that this Kata could have been more interesting if the test cases weren't so strict in some rather ambiguous or straight out controversial cases.It's related to caching, it's not a kata issue.
Your points should be updated now.
This comment is hidden because it contains spoiler information about the solution