Blog

Viewing posts tagged C

Faster Decimal Number I/O In C

Today I was playing (never competing, please!) on a CodeChef programming contest and was dismayed when comparing my timings with some other competitors. Theirs were way shorter and I saw no way to improve my O(N) solution because I HAD to read an array of values. My processing was taking place while reading the data, using no loops only simple calculations.

Decoding Fake Binary Messages

Sometimes I see posts on Facebook featuring a series of zeroes and ones mimicking a binary stream: