Algorithmic Problem Solving § Assignment 2 Solution