Search
⌘K

Leetcode 2677. Chunk Array

Partition the input array into consecutive subarrays (chunks) of the given size, with the final chunk possibly shorter if the array length isn't a multiple of size. Return the list of these chunks (empty array yields [], size larger than length yields single chunk).


Question Timeline

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

Comments

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