Skip to content

Commit

Permalink
Merge pull request CyC2018#851 from lxw0109/patch-2
Browse files Browse the repository at this point in the history
Update Leetcode 题解 - 动态规划.md
  • Loading branch information
CyC2018 authored Feb 29, 2020
2 parents 3def725 + acac43d commit efeb9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/Leetcode 题解 - 动态规划.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private int rob(int[] nums, int first, int last) {

## 4. 信件错排

题目描述 N 信封它们被打乱求错误装信方式的数量
题目描述 N 信封它们被打乱求错误装信方式的数量所有信封都没有装各自的信

定义一个数组 dp 存储错误方式数量dp[i] 表示前 i 个信和信封的错误方式数量假设第 i 个信装到第 j 个信封里面而第 j 个信装到第 k 个信封里面根据 i k 是否相等有两种情况

Expand Down

0 comments on commit efeb9b3

Please sign in to comment.