Skip to content

Commit f002cd5

Browse files
authored
Update README_EN.md
1 parent e835f31 commit f002cd5

File tree

1 file changed

+3
-2
lines changed
  • solution/2300-2399/2338.Count the Number of Ideal Arrays

1 file changed

+3
-2
lines changed

solution/2300-2399/2338.Count the Number of Ideal Arrays/README_EN.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ Consider $n$ balls, which are eventually divided into $j$ parts. Using the "sepa
8585
We can preprocess the combination numbers $c[i][j]$ using the recurrence relation $c[i][j] = c[i-1][j] + c[i-1][j-1]$. Specifically, when $j=0$, $c[i][j] = 1$.
8686

8787
The final answer is:
88-
\[
88+
89+
$$
8990
\sum\limits_{i=1}^{k}\sum\limits_{j=1}^{\log_2 k + 1} f[i][j] \times c_{n-1}^{j-1}
90-
\]
91+
$$
9192

9293
where $k$ represents the maximum value of the array, i.e., $\textit{maxValue}$.
9394

0 commit comments

Comments
 (0)