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.
You're welcome and thanks for your kind words.
For sake of completeness, you should study iterative solutions such as
DanillGodovan
's one as they are also insanely fast/Is it? There are no examples of curves or straights in the Kata description that suggest that is possible.
Congrats for persevering and getting it to work.
Maybe someone with some free time can help you debug your solution, but I don't have that luxury rn.
What exactly happens when you submit your solution? Does it return incorrect answers? Does it time out? Did you try to run it locally in your IDE with exactly the same inputs which it fails on Codewars? See here if you need to know how to recreate tests locally.
As @Chrono79 said, you're not supposed to scramble the digits. Otherwise, there's no way to obtain a unique solution.
You scramble numbers, not digits.
I'll start with the first example you provided.
Split the string up and show me how you get the range
[69,86]
.So the images in the Description didn't help at all?
The blob at
[ 5, 6 ]
comes before[ 9, 6 ]
, clockwise.For me, it's quite clear from description:
Woud it have any sense to have a list of words containing "AA" and "AA"? Also, are examples not explanatory enough?
Which of your two possible interpretations matches these examples?
This has already been discussed many times in the comments below, and all of the tests are correct. Not an issue.