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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Am I wrong having a next solution?:
I think it is a relatively fast solution, but I can't pass all the tests, though I pass 26 tests.
Take the first letter - 'z', then 'a' on positions 4 and 5 (not indexes) and then take the last 'z'
Uhhhm, it is very strange. I've built my spyOn function exactly in this way, but I'm still getting type error, which says that callCount and wasCalledWith are not functions. Their type is undefined. I logged the body of the instance of spyOn: I get function, which has callCount and wasCalledWith methods within. Can't understand it so far
Where's the mistake?
John's katas should be: [0, 0, 1, (3-2) = 1], when Ann katas is: [1, 1, 2, 2]
Why John have made 2 katas on the day 3, if that should equals to 1?