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.
Not a question, don't post solution in discourse
Also, your code always returns
False
becausetype(max_y/max_x)== float
is always a float, even ifmax_y
is divisible bymax_x
.From the kata description.
This comment is hidden because it contains spoiler information about the solution
I have the same problem with my code. The only difference is the quotation marks.
I dont see either....
Thanks, I saw the condition. Could you give a and b for a ray that returns to 0.0? one example, if I could untwist a sequence
I don't see how it's even physically possible for the light to terminate at (0,0). Isn't it always reflecting "upwards" at an angle of 45 degrees? How would it ever go back down to the point (0, 0)?
This comment is hidden because it contains spoiler information about the solution
true for either of those
false for (0,max_y) or max_x,0)
Kind of confusing clarification on what output should be. I should be returning if it is (0, 0) vs if it is (max_x, max_y) OR should I be returning True if it is either of those?
Your code is wrong: that is nowhere near any of the solutions.
Approved
Haskell, JS, and Ruby translations.
This comment is hidden because it contains spoiler information about the solution
Loading more items...