Homework by Coursera on Design and Analysis of Algorithms