adambard / adambard/learnxinyminutes-docs
Dynamic Programming / en: pseudocode is incomplete
未关闭
- 主要语言
- Markdown
- 星标
- 12.3k
- 派生
- 3.7k
- 平均合并
- 13 小时 10 分钟
- 30 天内合并 PR
- 6
描述
Unless I'm mistaken, the `if` statement at the bottom of the Longest Subsequence pseudocode doesn't actually do anything:
```
for i=0 to n-1
LS[i]=1
for j=0 to i-1
if (a[i] > a[j] and LS[i]
贡献指南
调研方向
Open the English Dynamic Programming documentation and locate the Longest Subsequence pseudocode shown in the issue. Read the surrounding explanation to determine what the final comparison is meant to produce, then update the pseudocode so the final block is complete and no statement remains a no-op.
由索引模型根据 Issue 内容生成。
评估
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100