All Problems

Read N Characters Given Read4

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

Problem

Given a method read4 that reads 4 characters at a time, implement read(buf, n) that reads n characters from a file.

Loading...