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 coulnd't reproduce the problem. The test solution expected
[9, 0, 8, 0, 6, 6, 0, 3, 9, 0, 2, 6]
when I tried.I see the change. Thanks a lot.
It looks great! I'm wondering if we should generate more
0
s in the arrays since now they are very sparse which may not cover some cases (like several0
s in a sequence). But it's already pretty good right now. How do I accept the change? Should I just re-publish it?Thanks for the translation. Feel free to add more test cases as you see necessary.
This comment is hidden because it contains spoiler information about the solution
resolved
withit56, thanks a lot for this suggestion. I love your example which is very illustrative.
I've updated my kata to 1. create alias between
pairZeros
andpairZeors
; 2. adopt your example in the description.Thank you for pointing it out. It's now fixed.