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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The number of tests should be increased (this incorrect solution may pass all tests occasionally). I also recommend to add small random tests (random 10 x 10 matrices).
Potentially add some random tests of a smaller grid size? My earlier solutions passed all fixed tests but failed some random, and it is difficult to debug when the grids are too large to output.
Hard coding 200_000? Better to keep working on your solution until it does the job within the given time.
Sorry, I missed something in description. Nice kata!
210 - 158 = 52 > 35, so the second row is not harmonious.
Please, test this:
I have been trying to come up with a purely functional solution to this kata, but at last I have to turn to lodash for the deep merge.
Anybody knows how to figure this nicely without using lodash?