my answers to the algorithms book