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.
Python new test framework should be used (Refer this for more detail)
Tests should not print excessively to standard output
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.