Count uint8 Sergey Svistunov

Count the number of bytes equal to 127 in a binary stream as fast as possible.

Input: 250 000 000 uint8 values in binary on STDIN.

Output: The count of elements equal to 127, printed as a decimal string.

Back to listAug 10, 2023 05:47parsersmailparsersmailError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 10, 2023 05:4700000Error: Exit with code 2: panic: runtime error: slice bounds out of range [:2500000000] with capacity 250000000 goroutine 15 [running]: main.main.func1(0x9) /tmp/solution1309548241/main.go:34 +0x14a created by main.main /tmp/solution1309548241/main.g...stderr