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
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"?
No!
Actually you can write a code, running with linear time, but that time still would have to be n^2.
And that's only if we had to return an 1D array instead of 2D array.
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.
When I use Attempt, and my code fails for some reason, I think the Output screen should show what test it was running, instead of just showing the output.
Loading more items...