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.
Do you think so? It increases the dependencies but it reduces the implementation code itself.
I tend to think that as long as the code is clear it might make sense.
You also don't need to compute the index modulo, just use a boolean as a flag.
This comment is hidden because it contains spoiler information about the solution
I like your solution. is not the fastest but easy to read! good job!
def not best practice for something this simple. if you can avoid using a lib do it.
lololol
doing this excersie i reliase you could have used indexOf(), .includes(), and .search(). First time i heard of search tho
Use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
=== instead of == is better practice
i wouldn't call this best practice do