Skip to content

Commit 0b8515c

Browse files
Merge pull request SharingSource#93 from SharingSource/ac_oier
✨Update: Modify 526
2 parents 123c9d8 + b3c069f commit 0b8515c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LeetCode/521-530/526. 优美的排列(中等).md

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ class Solution {
120120

121121
因此我们需要一个计算 $state$ 的 $1$ 的个数的方法,这里使用 $lowbit$ 实现即可。
122122

123-
最终的 $f[i][state]$ 为当前位置选择的是所有合法值的方案数之和:
123+
最终的 $f[state]$ 为当前位置选择的是所有合法值的方案数之和:
124124

125125
$$
126-
f[state] = f[state \& ( \lnot (1 << i))]
126+
f[state] = \sum_{i = 0}^{n}f[state \& ( \lnot (1 << i))]
127127
$$
128128

129129
代码:

0 commit comments

Comments
 (0)