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.
finally solved.
This comment is hidden because it contains spoiler information about the solution
Well sorry, i didn't realise that it's possible to not see answers to your own question. I untagged spoiler.
i'm sorry but i can't see your reply cause i didn't solve the challenge,
could you tell me what's wrong with the solution
This comment is hidden because it contains spoiler information about the solution
That's already in the description.
So you can't have
"Hobbits, Hobbits,....."
i didn't get it at first it => goodVsEvil('1 1 1 1 1 1', '1 1 1 1 1 1 1'). i thought that good worth is
1+1+1+1+1+1= 6 means "Hobbits, Hobbits,....." so the good army contain six Hobbits, and evil army contain
seven Orcses so evil wins
this got me confused
Better how? What is missing?
the description should be better.
Thanks for the approval!
Hello. you have a nested for loop so that makes the complexity of your function O(n^2). Try to iterate over the string once or twice and think what you need to calculate during each step.
Thanks for the translation!
Lua translation!
This comment is hidden because it contains spoiler information about the solution
Loading more items...