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
I guess OP didnt tried other katas apparently..... Im finding this kata a bit difficult as well, will need to come back. if you are familiar and confident in solving math problems, this might seem easy for you. If you coming into programming from another background, I dont see this kata that easy. but nontheless challenging in a nice way, as it should
@ 10XL => thank you
thank you
I agree, I initially set the estimated rank at 7 kyu but it was approved as 8 kyu. You can gauge difficulty by looking at the rank assessment stats on the details page. The average rank given was 7 kyu.
In my opinion, this kata is probably one of the hardest among all 8 kyu's. This kata may be more appropriately categorized as a 7 kyu.
Oops, no, it was my mistake. In some of the tests I had put the actual and expected solutions the wrong way around - thanks for pointing this out!
I think I misunderstood the instructions. Trying to understand why the expected output does not include all values of 15 in one array.
Testing for input [18,13,11,15,19,14,20,15,15,11]
✘ should work for random tests with small arrays -
Expected: '[[18], [13], [11, 11], [15, 15], [19], [14], [20], [15]]',
instead got: '[[18], [13], [11, 11], [15, 15, 15], [19], [14], [20]]'
PS - attempting to solve kata with JS
Many thanks!
Your array elements are strings, not numbers. Convert them first.
This comment is hidden because it contains spoiler information about the solution
Please share code and mark as having spoiler content
This comment is hidden because it contains spoiler information about the solution