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.
Man this is genius! I totally forgot about
.includes()
. I ran a forEach onb
. 😅What would be the optimal solution?
Wow this is pretty cool. I didn't know JS checks the ASCII values behind the scenes.
Also, returning the condition itself would work.
Just wasted my time on this. it seems I'm not the only one who has an issue.
After understanding the question, I concluded that this is similar to the pagination algorithm.
1 pancake, 2 pancake limit:
This passed all simple tests. How can 3 be expected? Its not a multiple of 2.
You can't serve half pancakes. Even if you did, it'll still take a minute on each side.
I had the same thinking but couldn't articulate it in code. Very clever and readable!
I like this one. It's easier to read.
I like this solution but I'm confused ... why 9?
This is sweet, understandable and simple!
numberOfPairs
is redundant. There's no need to calculate it.