3 ms·
Yeah, how does the proposed solution solve the problem as stated: "Print the number of bytes whose value equals 127 in a 250MB stream of bytes uniformly sampled
by BoardsOfCanada 2y ago
Yeah, how does the proposed solution solve the problem as stated: "Print the number of bytes whose value equals 127 in a 250MB stream of bytes uniformly sampled from [0, 255] sent to standard input."
- anonymoushn 2y agoWhen stdin is a file, as it is in this case, you can mmap it.
- Iwan-Zotow 2y agotechnically not an equivalent problem - you can't map a stream
- anonymoushn 2y agoThe whole problem statement isn't equivalent to the substring of the problem statement that GP quoted? I agree. For example, the whole problem statement includes a part that specifies that stdin is a file stored in hugetlbfs.