Code training for algorithms and data structures