Goolge phone interview
Anonymous User
1393

The question was something like this:
We need to devide data into chunks. Chunks can have size up to chunkMaxSize.
We can fill the chunk with max amount of data or any amount given in amountArr.
The question is how to find the minimum number of chunks that can be used in order to send the data.

input: dataSize:number, maxChunksSize:number, amountArr: number[]
output: minimumNumberOfChunks: number

Comments (4)