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.
approved.
Confirming this is an issue
Fork here which:
Excellent, thanks for the sanity check! Issue added.
I believe I've found a test case that should be added: the current tests will allow a string like
"----O____Odust"
to be counted as 'glasses'.Here's an example of a solution that works, as a result.
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! 🙏