...

/

DIY: Divide Array in Sets of K Consecutive Numbers

DIY: Divide Array in Sets of K Consecutive Numbers

Solve the interview question "Divide Array in Sets of K Consecutive Numbers" in this lesson.

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 ...