Backtracking Lagrange Theorem A program that demonstrates the backtracking principle. Theorem involved: Lagrange. HashMap is implemented for acceleration.