-
Recent Posts
Recent Comments
Archives
Categories
Meta
Category Archives: ShortPosts
Isolate the rightmost (least-significant) bit
Fast & elegant: Tests Output Brute force Output for the new version Practice 231. Power of Two 191. Number of 1 Bits Related concepts Two’s complement
Posted in Algorithms & Data structures, Posts, ShortPosts
Leave a comment
Generate files with random bytes
The following command grabs 20 Mb of random bytes from /dev/urandom and saves it to rnd.bin: Generate a bunch of files:
Posted in Posts, ShortPosts, SoftwareEngineering
Leave a comment