Contest questions and algorithm practice