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 kumite shows that tests are too strict.
That solution is strictly
O(n)
, but iterates twice instead of once ( "O(2n)
", which isO(n)
). But it times out -- unlike the solution it is based on, which iterates once.If you require
O(n)
, the constant factor should, within reason, not matter. I don't think this approach is unreasonable. Use fewer, bigger, tests to test performance.