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.
You are adding duplicate pair-wise entires to the output
list
(specifically this line -->new List<long[]> { new long[] { (int)a, b }, new long[] { b, (int)a }
)Make sure you're using long instead of int and double instead of float. The latter was causing issues in my solution and it worked fine on smaller n, but failed on test 10 and 11 which have pretty big input arguments.