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.
well, most of times we call some functions without knowing how it's done inside the blackbox, that is abstraction. it is a fact that is not readable but you would not need to read that.
Awww damnit. I always overdo my code. One line!?
Unreadable. I wish code like this would not get upvoted so much. This is not best practice.
Thanks for clarifying that.
Have a closer look at your array bounds and what elements in the array you access on each loop.
It's not the author who sets the Kyu. It seems a 7 Kyu kata to me and that's the average of voted rank.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Same thing happened to me. There can't be fraction of a person, use that to figure it out.
Thanks for that Chrono79. I actually meant to use Math.floor, but had round in there instead. In my frustrated state I did not notice this. However that did not solve my issue.
I know what my problem is. I need to count until the population is ABOVE the goal, however I am not confident in which loop to use. I am using a while loop... but that will only count while my population is BELOW OR EQUAL to the target population.
I might have to use a do...while loop... I think. I will try and work on it again tonight.
Are you sure
Math.round
does what you want?I am using Math.round on my currentPopulation formula. And I am still getting "51 to equal 50" error. I have been at this all morning. Urghh.
I just can not, for the life of me, get past the "51 to equal 50" thing. I am rounding my currentPopulation down. Could it be because I am using a while loop? (Javascript) I tried a do...while loop and that does not work either. (I get the dreaded "4 to equal 3" error) Yes, I read the description. Over and over. I read all the comments. Something is just not clicking. I know I have to stop once the population is ABOVE the goal, but I don't know how to make that work.
What is TS?
Ninja code. Neat. But hard on the eyes.