Practice algorithm and ds