times out all these solutions, so clearly there needs to be more tests of maximal planar graphs. Also:
There are about 50 fixed tests and 1000 random tests
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.
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