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.
chai
andassert
should be used.Every existing solution (including author solution), except one, can't actually solve the kata under the worst bounds: at least one of the inputs
times out all these solutions, so clearly there needs to be more tests of maximal planar graphs. Also:
There are actually 1200 random tests. Since you do get to decide how many random tests to run, this should be an exact number, and definitely not an under-estimate.
The cheese mentioned below still works, after hardcoding all the fixed tests.
Leading and trailing newlines are inconsistent through the test cases; sometimes there are leading newline and sometimes not.
This comment is hidden because it contains spoiler information about the solution