Solutions of basic algorithm problems.