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 solution outputs
false
forarr = [1, 2, 3, 6, 2, 3, 4, 7, 8], groupLen = 3
.Meanwhile, with the given array and group length, you can make:
[1,2,3], [2,3,4], [6,7,8]
which all of the groups have its' elements in consecutive number order.
The output should be
true
.