Skip to content

Commit

Permalink
Update 0526. 优美的排列.md
Browse files Browse the repository at this point in the history
  • Loading branch information
itcharge committed May 15, 2024
1 parent 00e1613 commit 2879d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solutions/0526. 优美的排列.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Solution:

###### 3. 状态转移方程

对于状态 $state$,先统计出 $state$ 中选择的数字个数(即统计二进制中 $1$ 的个数)$one_num$。
对于状态 $state$,先统计出 $state$ 中选择的数字个数(即统计二进制中 $1$ 的个数)$one\underline{\hspace{0.5em}}num$。

则 $dp[state]$ 表示选择了前 $one\underline{\hspace{0.5em}}num$ 个数字,且选择情况为 $state$ 时的方案数。

Expand Down

0 comments on commit 2879d5f

Please sign in to comment.