1:3 -> 0; 3:5 -> 6
The problem statement and test suite really need some improvement, here. It's a nice problem, though! I didn't assume that the three lengths given would form a triangle, and return a NaN if they don't.
best solution
^ I used trigo rule and didn't get a round ans, idea on how to improve this?
This is'nt a general solution. See Solution 206432.
Count from 0 to N^M in base N.
200 Solvers
2475 Solvers
533 Solvers
304 Solvers
Flip the vector from right to left
752 Solvers