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'm getting occasional (appx 1 in 100) errors where my answer seems right. One example (using console.log on the arguments):
Another example:
I got one or two errors out of 107, then passed the kata on my third try. Then refreshed and tried again, got one error out of 107.
Enjoyable kata, thanks.
Nice to have a challenging kata that taught me something new. But the difficulty level needs to be bumped (6kyu maybe), and the description should make some reference to generators. Many people (like me) will be coming across generators for the first time.
Using indexOf and lastIndexOf is your time-performance problem. Find another way to figure "are there at least two?" for each item.
Agreed, this is confusing. Suggestion: rewrite the description so that the code block following "Valid types of change include:" shows what the actual preloaded CHANGE dictionary will look like.
This comment is hidden because it contains spoiler information about the solution
The '||' is the part I didn't get. Since posting I've seen it many more times and figured out basically what it does. But I still can't find it mentioned on any JS reference or tutorial sites.
This comment is hidden because it contains spoiler information about the solution
OK, I misunderstood. Some katas have a reference object pre-defined, and I jumped to the conclusion that's what was going on here. Thanks.
I assume the "database" is an object. If so, we need to know what it's called to complete the kata.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Description should make clear that
alpha
will not always be{'ABCDE':1,'FGHIJ':2,'KLMNO':3,'PQRST':4,'UVWXY':5}
.This comment is hidden because it contains spoiler information about the solution
If you want the "total sum", wouldn't you add all the numbers? If "alternating sum" means something different, you should explain that in the kata description.
Loading more items...