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.
Python new test frameworks are required.
The description doesn't specify which result to return if more than 1 valid substring with the same length exists in
data
.Random tests are still too weak: see this. There needs to be fixed tests for all 1x3 (and 3x1) edge cases.
This comment is hidden because it contains spoiler information about the solution
The return value should be a
set
instead of alist
, then you can compare with the expected value without the need of sorting.According to the description, empty string are valid input. If so, such cases should be tested.
The random length of rows and columns grows from 1-9 to 1-20 and 100 test cases changed to 1000 test cases.
Random tests are too weak
Thank you, I updated the description and wrote the sizes.
Thank you, I updated the description and wrote the sizes.
The timing of the 1000 tests are very variable. I don't think strict 1 second limit is reasonable wrt. the degree of randomness in your tests.
Maybe you should put more attention (in the description) on the fact that the key's order is arbitrary.
I don't see input size being mentioned anywhere despite having performance requirements. Number of random tests doesn't really indicate anything.