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.
As I understand we neet to find rectangle
[ 9,2] -> 11
[-4,1] -> -3 = 15
[-1,8] -> 7
Task just poorly described.
reduce will iterate over all elements, but what if strarr.lenght == k?
ordinary for loop will finish in one iteration
for (let i = 0; i + k <= strarr.length; i++)