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.
kata discription is shit
you have VALID_WORDS set
try console.log(VALID_WORDS)
That condition is necessary but not enough. You can be sure that with less than 17 you can't have unique solutions, but as you see, with 29 givens you still can have multiple solutions.
The first solution is not unique, this one works too:
I suspect the other may be the same case.
the kyu values are all over the place, I've seen pretty hard 7 and 6 kyu and really easy 4 kyu.
Read the note or the last post.
https://www.timeanddate.com/calendar/?year=1001&country=22
My guess is that you modified the input string instead of returning a new one ...
1000+ people solved it without a problem...
what I get is this
supose you receive 'AAAB', then all posibilities are (always based on the letters)
AAAB = 1
AABA = 2
ABAA = 3
BAAA = 4
if you get 'ABAB', all posibilities are (if I don't miss anything)
AABB = 1
ABAB = 2
ABBA = 3
BAAB = 4
BABA = 5
BBAA = 6
and the task is to return the correct index
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution