Set 17 - 2D Dynamic Programming

Use Practice Loop if you need a reset.

Problems

ProblemDifficultyPatternVideo
LC 62. Unique PathsMediumGrid DPVideo
LC 63. Unique Paths IIMediumGrid DP + obstaclesVideo
LC 64. Minimum Path SumMediumGrid DPVideo

Deliverables

  • Write a 1-line invariant for each problem.
  • Note 1 edge case or pitfall per problem.
  • Record time-to-first-correct solution.

Notes

  • LC 62: grid DP from top/left (or combinatorics).
  • LC 63: obstacles block paths; dp=0 if obstacle.
  • LC 64: dp[i][j]=grid+min(top,left).

Review

  • Time spent + where you got stuck?
  • Biggest mistake or missed edge case?
  • One concrete improvement for next time.

Comments

Share your approach or ask questions

0 comments
?
|
Markdown supported
Sign in to post

Loading comments...