My attempts at solving problems in Cracking the Coding Interview, 5th edition