0Pricing
Competitive Programming Academy · Lesson

Path Counting on a Grid

Sum paths from corner to corner.

The Classic Grid Problem

You start at the top-left of a grid and want the bottom-right. Each step moves right or down. How many distinct paths exist?

Why DP Fits

Every cell can be reached from the cell above or the cell to its left. That overlap is exactly why this is a DP problem.

All lessons in this course

  1. Path Counting on a Grid
  2. Minimum Path Sum with Obstacles
  3. Longest Common Subsequence
  4. Edit Distance Step by Step
← Back to Competitive Programming Academy