Skip to content

Commit 368aa0b

Browse files
authored
Minor fix
1 parent 1e35d63 commit 368aa0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/6_Advanced/Slope_Trick.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ fertilizer), so it's not too hard to guess that slope trick is applicable.
365365

366366
### Slow Solution
367367

368-
Let $dp[i][j]$ equal the number of ways to move dirt around the first $i$
368+
Let $dp[i][j]$ equal the minimum cost to move dirt around the first $i$
369369
flowerbeds such that the first $i-1$ flowerbeds all have the correct amount of
370370
dirt while the $i$-th flowerbed has $j$ extra units of dirt (or lacks $-j$ units
371371
of dirt if $j$ is negative). The answer will be $dp[N][0]$.

0 commit comments

Comments
 (0)