DAG longest path on grid via memo is classic for dependency depth on 2D metrics.
Enable JavaScript for the full StreamPrep guide.