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.
This comment is hidden because it contains spoiler information about the solution
Yes! I had a feeling that it can be solved using list comprehension
Nice! i thought i was the only one who doesn't know coding :)
so its not just me who struggled. took me 100 minutes to solve it
The more you know, the less you will do 🙃
this one is good
it's art
this is depressing
No. The simplest possible solution is definitely 7kyu, and that is a reasonable basis to rank the kata.
then the if function won't be necessary anyways. solution still works.
Modified and approved.
oh I see! thanks. It should be at least 5th kyu not 7th
In the description:
You are tasked to search the index where the glasses is, not how many are there in the array. The instructions are correct.
The instructions are wrong.
It says that this has 3 glasses, findGlasses(["OO", "wallet", "O##O", "O----O"]) âžž 3
while at the same time it says they need to have at least 1 dash between them, which is a contradiction.
So it counts hashtags and no dashes as valid glasses or what.
that's cheating :D