Without looking at your code it is hard to say, but I would probably bet that any algorithm that iterates through two loops (a and b) will give you troubles when you try and find c in a^2 + b^2 = c^2.
Try to find a way to make only one loop in your code.
Without looking at your code it is hard to say, but I would probably bet that any algorithm that iterates through two loops (a and b) will give you troubles when you try and find c in a^2 + b^2 = c^2.
Try to find a way to make only one loop in your code.
Nice use of accumulate.
Nice use of any
Nice!
Yeah, I think I can maybe be a little more liberal with my one-liners.
I use them so long as they are easily understandable (like this one)
Nice one liner. Just currious, do people use if statements like this in production? Thanks!
This comment is hidden because it contains spoiler information about the solution
Neat! Love it! :)
Nice!
Nice!
This comment is hidden because it contains spoiler information about the solution
Fun problem, but this really shouldn't be 7 Kyu since there is a timing element.
Thanks
Thank you for the fun problem, but does it seem a little over rated?
If you can't pass the tests, then you're "moving diagonally" incorrectly.
Loading more items...