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.
The $ is just a character in the string. Is there a reason you think it would need to be escaped?
How come the $ does not need to be escaped in this 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
I agree with waldnzwrld. that is not the porpus of this kata.
I'd
.round(2)
just once, wrapping all the return sentence. Otherwise, I liked it!the ^ is a logical xor not a bitwise xor
this is the best
Thanks
This is the so called "ternary operator":
http://www.w3resource.com/ruby/ruby-ternary-operator.php
is a shortcut for:
what does ? and : mean in ruby
Hehe, sorry, I thought perfect square would be enough. It's fixed now.
The instructions should be more explicit about the number being passed in, and the condition that it must result in a whole number when the square root is calculated.