Jun 22, 2014

Buffer problem

1.There is a buffer and its size is unknown and the content size which is present in the buffer is also unknown. The size of the content doubles every iteration, and buffer gets filled at 73rd iteration. So at what iteration buffer gets filled 12.5%.

Solutions:
when 2^73 buffer is 100%
 when 2^72 buffer is 50%
 when 2^71 buffer is 25%
 when 2^70 buffer is 12.5%

No comments:

Post a Comment