Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo of problem 1955. #4256

Closed
ThreeMonth03 opened this issue Mar 17, 2025 · 1 comment · Fixed by #4257
Closed

Typo of problem 1955. #4256

ThreeMonth03 opened this issue Mar 17, 2025 · 1 comment · Fixed by #4257

Comments

@ThreeMonth03
Copy link

$$
\begin{aligned}
f[i][0] &= 2 \times f[i - 1][0] + 1, \quad nums[i] = 0 \\
f[i][1] &= f[i-1][1] + 2 \times f[i - 1][0], \quad nums[i] = 1 \\
f[i][2] &= f[i-1][2] + 2 \times f[i - 1][1], \quad nums[i] = 2 \\
f[i][j] &= f[i-1][j], \quad nums[i] \neq j
\end{aligned}
$$

It should be

 $$ 
 \begin{aligned} 
 f[i][0] &= 2 \times f[i - 1][0] + 1, \quad nums[i] = 0 \\ 
 f[i][1] &= f[i-1][0] + 2 \times f[i - 1][1], \quad nums[i] = 1 \\ 
 f[i][2] &= f[i-1][1] + 2 \times f[i - 1][2], \quad nums[i] = 2 \\ 
 f[i][j] &= f[i-1][j], \quad nums[i] \neq j 
 \end{aligned} 
 $$ 
@yanglbme
Copy link
Member

Thanks for the feedback! We've fixed this issue in PR #4257.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants