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.
totally agree, your solution is the best one!
i was thinking python and not math when i wrote mine
the "python way" makes some people really dum dum
no way! is unnecessary computation!
Please, use spoiler flag next time, your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
Wow, its really the best answer
Laconic and nice.
Wow! So clever👍
Number of random tests is increased to 1001 to ensure all cases get tested. And your other issue also is fixed https://www.codewars.com/kumite/6830931d9b22cae2fe115973?sel=6830931d9b22cae2fe115973
Typo fixed in this fork: https://www.codewars.com/kumite/6830931d9b22cae2fe115973?sel=6830931d9b22cae2fe115973
Fixed in this fork (does not invalidate old solutions): https://www.codewars.com/kumite/6830931d9b22cae2fe115973?sel=6830931d9b22cae2fe115973
1 should be an acceptable answer to n=3 as there a single way to triangulate a triangle - do not do anything. I don't get why you chose not to consider this.
i am stupid ngl
Never thought to use min/max...and I always forget they exist LOL
Python.
I think it's important to say that n is the number of vertices the polygon has.
If the above is true, then the phrasing 'For n=2, possible_triangulations(2) returns 2,' Doesn't make any sense. To return 2, n should be 4; and when n = 2, it should return 'Not a valid polygon'.
Loading more items...