Jesus christ. I spent a while understanding every part of the code and triangle before attempting it and it could've been done like this.
This makes me hate myself.
Today I learned, again and again
For some reason I didn't understand this. In the end I did it through laziness.
Great problem-solving skills!
dang this has convinced me to always write out a 1-10 list of inputs -> outputs now...
...damn.
This comment is hidden because it contains spoiler information about the solution
this solution is the same as mine
why?
cheater
Wow. I was just happy to solve this in about an hour. Bravo!
Im curious as to why we do not need to specify return "false" or "true" in this example?
Math is allowed, what you are getting is: "Math::DomainError (Numerical argument is out of domain - "sqrt")" you could use 'raise' to attend it or use logical expression to ensure the positive range of the number before use Math::sqrt
Loading collection data...
Jesus christ. I spent a while understanding every part of the code and triangle before attempting it and it could've been done like this.
This makes me hate myself.
Today I learned, again and again
For some reason I didn't understand this. In the end I did it through laziness.
Great problem-solving skills!
dang this has convinced me to always write out a 1-10 list of inputs -> outputs now...
...damn.
This comment is hidden because it contains spoiler information about the solution
this solution is the same as mine
why?
cheater
Wow. I was just happy to solve this in about an hour. Bravo!
Im curious as to why we do not need to specify return "false" or "true" in this example?
Math is allowed, what you are getting is:
"Math::DomainError (Numerical argument is out of domain - "sqrt")"
you could use 'raise' to attend it or use logical expression to ensure the positive range of the number before use Math::sqrt
This comment is hidden because it contains spoiler information about the solution
Loading more items...