set of algorithm problems and solutions with tests