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.
Remark below is an ISSUE.
Random tests are not strong enough. An inferior algorithm, hardcoding 2 fixed tests, made me pass all random tests.
Issues:
[ [0, 0], [1, 1], [2, 2]]
?"Code should identify invalid arrays."
should be a title of a test case or a test group. Assertion message should present input of a failing test.Suggestions:
(int) (Math.random() * 200) -100
is a really bad way if generating random numbers. There isRandom::nextInt
, there isRandom::ints
.ForemanPig
.I read the description a couple of times and I still have no idea what "ordered pairs" are, especially in context of triangles :thinking: