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.
this is exactly what I was thinking the first time. There must be a better way to do this than 5 lines of codes
This comment is hidden because it contains spoiler information about the solution
how dose -array work
version for Lolikon
It seems to me that if you "love" pizza you would return the largest pizza for a like price...
Instructions are: "If more than one size has the same price per square inch, then you should return the smallest size of that group."
Wouldn't you want the "largest size" of that group???
Take a look at this link from MDN... Math.sign().... https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
Negative zero IS a valid usage! and the kata description does not say don't return a negative zero!
the solution is ok, but the last test of a single-element array (a [0] one) returns -0, which is a mistake. You have to make teh code don`t put this minus befor this zero.
I don't remember a golfing kata showing how to write good code, generally it's the opposite.
I think this exhibits how to write really bad code!
This comment is hidden because it contains spoiler information about the solution
Thank you! :)
Where is the button for the translations? :/
Can you open here and possibly also see an elixir one, waiting for approval?
In case, I would suggest to approve my first, to avoid possible merge conflicts with the latter. Cheers.
Shouldn't have "-0" in the tests!
Thanks :)
NO, don't quit and don't unpublish! Keep at it and you'll do just fine!!
Just do your best, ask questions when you need to, and don't feel intimidated...
We all have to start somewhere... :o)
Loading more items...