DIY: Divide Array in Sets of K Consecutive Numbers
We'll cover the following...
Problem statement
In this challenge, you are given an array of integers nums
and a positive integer k
. You have to determine whether it is possible to divide the elements of the array into groups of k
consecutive numbers.
Input
The inputs will be an ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy