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.
Wow! The Sliding Window approach in flesh and bone!
This comment is hidden because it contains spoiler information about the solution
Neat! But what if the needle is not there?Idk, "found the needle at position -1" feels kinda weird
I like the way you just used if and else without bothering yourself with the condition where el could be 0. Since adding 0 won't change anything, I think that's kinda smart