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
Lua Translation
Well, ok because of the
start over
I got confused and thought I had start over again and again on a specific position and was like why it's failing.Well it's done now.
"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.
Then what does this statement means?
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.Here's what I understand.
That a person starts counting the petals, for
n
number of times.And if let's say
n = 8
they start the counting froma little
and always start over witha little
and as like this should also be done for any number i.e.6n + 2
, Right?And return last petal they stopped on, Right?
Oh, that's what I was missing, can you put an example there, in the instructions for this
or somehow clarify this.
I can now see that this was obvious, but damn I jumped to the conclusion that it starts from a point and continues the same old loop.
That every time you reach "not at all", "I love you" comes next.
The solution is a very cool concept with a lot of useful applications.
However, it's confusing and more of a 7/6Kyu problem.
I don't think I'm understanding the question correctly?
The part where it says it should "start over", what does that mean?
Yes.
What does it mean by so on?
would 12 start on "not at all"? and would 13 start on "I love you"?
Kata author inactive.
Fork here:
https://www.codewars.com/kumite/66cfc32158ca25adbd4046c4
Which addresses the following issues:
https://www.codewars.com/kata/5708ef48fe2d018413000776/discuss#66ceed4f35f801ce5b2114f0
https://www.codewars.com/kata/5708ef48fe2d018413000776/discuss#64a00e06dddc25005edfaf86
same issue
closing this one.
Loading more items...