Answers to the programming questions in Algorithms: Design and Analysis, Part 1 by Tim Roughgarden on Coursera