Code sample implementations from "Cracking the Coding Interview" by Gayle Laakmann McDowell