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
I tried indices as well, but didn't work anyway
I asked too :)
where did exactly 11 come from in this part?
arr = [17, 12, 5, 6, 13, 3] where length is 6.
solution says:
this would return 7 due to
(170 + 52 + 134 + 35) / 11 = 7.
what is 11? shouldn't it be (170 + 52 + 134 + 35) / 4?
arr length is 6, primes length is 4, the only match i found is
5 + 4 + 2 + 0 = 11 (indexes)