my solutions to the interview questions from "Cracking the Coding Interview"