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.
I know, but that doesn't matter. The question says you will only be given a positive factor, and zero isn't positive. This means that you won't be given zero.
Ah, I see it, thanks. In the future, if something's "level of spoil" seems equal to or greater than that of my initial comment (which I'm assuming is near the defined threshold), I'll mark it as a spoiler. Also, apologies for the typo in "displayed" (fixed).
Where is the comment displayed besides in the list of solutions, which would all obviously have spoilers? Also, what are the guidelines regarding whether or not something is a spoiler if it's not an outright solution? It can't be "anything somewhat-related to the kata" or else every single comment would be a spoiler on whatever screen (not the solutions list) they show up on.
Never mind, that wouldn't work since they could have two negative numbers
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
What's the point of checking if factor is zero? The question specifies that factor is positive already
Wouldn't a loop of appending to a string be O(n^2)? So strings.Join would be more efficient, no?
This is kind of stupid but it's still O(n) | O(n) which is optimal
O(n) time, O(n) space
This comment is hidden because it contains spoiler information about the solution
This is ridiculously inefficient
Lol, I forgot you could use $variable syntax inside $(())
The indentation is off because I wrote it in an external text editor and then pasted it over. I couldn't get a multiple-case-statement working for some reason
Loading more items...