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.
it ensures that the given input is a perfect square. a number with decimals will not return true using that if statement.
why would you even do 626?
question has asked the next perfect square means 676.
I don't know what are you trying to ask or may be I am dumb :<
You can do O(n^2) time.
If the array elements are not random (you know the range of common difference to expect), you can do O(n) time
Fixed.
The function name shouldn't be changed in the description.
Done
The reference solution can be seen in error messages.
The import shouldn't be in Preloaded.
https://www.codewars.com/kumite/5d4f4d6f5a309a00268cf290?sel=5d56be112c08670021fea03d
your
Test Cases
andSample Test Cases
are reversedChanged find_intercept to find_time_to_break.
Function name didn't make sense. Solution isn't to find the intercept, this was a throwback to an earlier idea I had.
that, they will know about. But despite of this, you could send negative values or greater than 359 (needing a modulo), even if that doesn't really make sense.
Agree. Clarified in the description. (People are going to struggle if they dont already know the range of degrees possible in a circle though)
last thing: you could add to the description a note about the range of the inputs.
2 -> mmmmh... :/ as long as you're askig for float values (double, in java), you should find a representation of infinity in the language. Ruby, java, JS have it, I guess you'll find it in the other ones too. Tho, -1 would be universal,without question, yes. Voile, what's your opinion on this?
4 -> nice XD
and you're welcome (some seems to disagree on this... I'll bet on our dear Alex... :p )
Also, changed the random tests to between 0 and 359 degrees. ( Was 0 and 180)
Really appreciate your involvement on this Blind4Basics
Loading more items...