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.
Remove mention of strings from the title since we're supposed to make it work for any spliceable object.
Your final test needs an it block
The 0 case should be tested in the example tests (since it's not following the builtin's behavior)
Cheers
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Excellent, thanks for the sanity check! Issue added.
You are correct! Good catch. The tests should be expanded to invalidate this incorrect solution. Perhaps make an
issue
in the discussion of the task?In my testing, this code erroneously returns a false-positive when parsing the string at index one of the list below:
test2 = ["O--#--O", "----O____Odust", "more dust"]
Please let me know if I'm missing something! 🙏
It's quite... something