Maybe add some code to copy?
Sorry this even shouldn´t be a Kata. (for python)
C translation kumited
please scrutinize and approve
This comment is hidden because it contains spoiler information about the solution
Haskell translation added!
Please review and approve :-)
Maybe add in the description that a triangle has 180 degrees?
For C++: if your parameter is an input parameter and it is positive it is nice to have: const unsigned int or const unsigned short.
I think it is a good practice.
Clojure Translation added
+1 to this guy, there is no such angle as 0.
You got your tests wrong.
I had to add to my if statement an equals in my solution to pass the tests : if((a+b)<=180).
During submission I've had a failure in test:
Time: 308ms Passed: 20 Failed: 1 Errors: 1
Testing: 149, 31; Expecting: 0
Expected: 0, instead got: 'The triangle with given angles can't exist'
As I remember geometry an angle in triangle can't be a zero. But this test expects a 0 angle. Or is there so-called flat triangle possible here?
What the fuck... how is this a serious Kata?
Thanks for reply!
Can you add random tests?
huh, so that's how that works