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.
Oh no worries, it just didn't update but now its invalid.
My java code takes ~8 seconds to run
Now I changed the upper limit of the performance test cases to 500 and the stress to 400, which invalidated 3 more.
No, it wasn't intended to pass, but due to python being slow, I made the restraints different than that of java. Now, I changed the performance tests to strictly be 400x400 instead of being from 350-400 in both dimensions, which invalidated it.
BTW, thanks for letting me know about the issues - I will look into them when I have more time.
This comment is hidden because it contains spoiler information about the solution
Oh I changed it in the sample tests section of the actual tests and the description but now I added it to the example tests page.
Yes, but the test case with
9 0 8
is the first sample test case.Changed test case to include
9 0 8
so the middle 0 should be removed. Is this good enough?Try to draw out the example - many people who tried this problem first came up with your solution. However, it might not be the optimal approach.
The area and maximizing the ones makes this kata different from those, but they are all excelent practice for submatrix problems. And thanks for rating this kata a 4kyu because in my other katas, rank inflation has decreased its rank (see Territorial Disputes and Uniform Milk Production). I believed based on previous katas that they would correspond to 3kyu and 4kyu respectively but others have rated them 4kyu and 5kyu respectively. Anyways, thanks for enjoying this one - more coming up soon. My last few have been quite interesting if you want to check them out.
Loading more items...