Solutions to exercises and problems from "Introduction to Algorithms", Fourth Edition by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein
Instead of importing sections and problems files directly, use loops.
Consider implementation using the pgffor package and its \foreach command.
Also, consider moving the \exercise, \subproblem etc. away from the specific files to the loop body.
Instead of importing sections and problems files directly, use loops. Consider implementation using the pgffor package and its \foreach command. Also, consider moving the \exercise, \subproblem etc. away from the specific files to the loop body.
Solution idea: https://tex.stackexchange.com/questions/20841/can-i-automatically-load-chapters-and-sections-based-on-the-filesystem