Google | Phone Screen | Minimise the maximum chunk size
Anonymous User
1118

A data processing service, which can process at most capacity of k bytes of data at any time, given a data of length l, find the minimum of chunks required. Also minimise the maximum chunk size and return all chunks.

Example:

Input: l = 301, k = 100 
Output: Chunk required = 4, Size of each chunk = 76, 75, 75, 75
Comments (4)