You need to sign in or sign up before continuing.×
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.
Your input spec is confusing... you say "array of numbers" but examples are all ranges of integers beginning with 1 and climbing in ascending order, so it's a bit confusing what you actually want. It's easy and fast to solve with range inputs by just calculating squares starting at the bottom of the range until you get one that's higher than the top end of the range, but that falls apart if you actually need to test "arrays of numbers" (e.g. [24,18,13,60,5,99])... what are the actual inputs? Arrays of numbers or ranges?