All Problems

Read N Characters Given Read4 II (call multiple times)

Hardos-flavorExpected: O(n) time, O(1) spaceInterview Context

Problem

Given read4, implement read(buf, n) that may be called multiple times, reading n characters each time.

Loading...