UVA103 - Stacking Boxes

DP, graph theory, longest path, DAG, sorting.