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.
hey, amigo, the verb )understand) does not take (ing)😂, i know it is not related to coding, but, you need to know it
"I love you", "a little", "a lot", "passionately", "madly", "not at all"
original 6 elements, n goes from 1 to 6,"I love you", "a little", "a lot", "passionately", "madly", "not at all"
the phrases start over at 7, n goes from 7 to 12,So on...
You're in the right track with what you thought in the first post, maybe it's a problem with how you describe it, but I think the idea is ok.
For
n = 8
the counting goes like this:And your function returns
"a little"
.I wouldn't say you start over with
a little
, but that you end witha little
instead. I already told you what start over means, after you reach "not at all", "I love you" comes next, and then "a little" and so on, as needed until you reach the nth phrase.That every time you reach "not at all", "I love you" comes next.
Yes.
Things to read:
Bottom line: it cannot be done (or, it's difficult to be done for technical reasons) in general way for all kata and all tests automagically. It's something what kata authors should take care of. If you think output of tests is not clear, you can suggest an improvement to the kata author.