solutions for algo practice