[ALGOSPOT] solved problem (lecture_note)