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.
in which of the two holes should go a cockroach in this case?
Teaches assertions in regular expressions. Must be approved. Nice kata
and how long?)
The solution is wrong. It find position of braces and use weakness of testing. Mistaken for simple examples:
[1, '['], ['[', 1] you program returns False, or [(1), 1], [1, (1)] returns True
sorry
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you actually change input matrix, so test case change itself. If you don't want to change the code you must find the way to copy all contain of the matrix(may be tricky)
sorry for asking. in the solutions above, where the split method is used twice in a line, does it affect performance in general, or are the list cached?
Not in general, but coz autor make 'k' less or equal than length of sequence, it is work
Tests and solution have been resolved for repeated values.
did the same🙂. One note: many functions automatically polls the generator, so it senseless to go through the list twice.
etc
Thanks for the translation!
OOP was added as an exercise. Tests fixed. Added case pipe = []
Sorry, but this case is just trivial, I'll add it to random tests
Loading more items...