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.
edge cases in Java expect
null
instead of empty list, this is not according to spec, and is a knife in the back of users that use recursion to solve this problem ;)Trying this in C++.
Seems that the algo you want is a bit 'oriented' => tried a solution that gives the sames results on many tests cases but... not the same amount of the 'same' rectangles (meaning, for example,
(3*2)
coming 2 times on your sol and 3 times in mine) for a few...