Search
⌘K

Leetcode 1296. Divide Array in Sets of K Consecutive Numbers

Determine if the multiset of integers can be partitioned into groups of size k where each group consists of k consecutive numbers. This requires that the array length is divisible by k and the element frequencies permit greedily forming consecutive runs in increasing order.

Asked at:

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid October, 2024

Google

Google

Mid-level

Determine if a list of numbers can be rearranged into set(s) of five consecutive numbers

Comments

Your account is free and you can post anonymously if you choose.