Algorithms and Problems solutions