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.
Why?
kata was retired
There should be a test case with an empty array.
No, the expected result often adds up to 359 or 361.
The description should specify how to round half integers (up, down, ...).
pass random list in your solution before giving it to the user, just replace
with
The total of the resulting list doesn't really adds up to 360, just close to it.
The fact I have no idea what's happening in your solution tells me it might just be easier to do it the normal way, but how can I get around this?
Python: Random tests are vulnerable to input modification. See this
I have no idea I fucked this up badly lol
The description needs to be reworded. Angles can not be perpendicular or parallel to each other, this is not how geometry works. Angle planes can be perpendicular or parallel to each other, but that's a whole different problem in three dimensions.
I suppose you mean something along the lines of "Angles
a
andb
combined form a right angle".im pretty sure that you cant really determine if the lines are perpindicular or parallel by only knowing the angles. (i might be wrong)
the description seems to have incorrect info as it states 2 PI radians is equal to 180 degrees which is incorrect. 2 PI radians is 360 degrees. The test cases might accidentally follow this incorrect rule which might result in improper test cases
Random tests are incorrect:
I agree with dfhwze's comments below.
Here are my suggestions:
I "solved" this kata in its current state, but the description should clarify what is a parallel angle and what is a perpendicular angle (or at least link to a website that gives these definitions). I basically relied on my knowledge of parallel lines and perpendicular lines and hoped this knowledge would apply to angles, too.
Also: The description says that one of the angles will be specified in radians, but it's not really specified in radians, but in terms of pi. So in effect you have to convert from that to radians, then from radians to degrees.
By looking at the results of the random tests, I was able to identify specific situations in which the kata expected None to be returned, but I have no idea why!
Fix some issues:
Loading more items...