adambard / adambard/learnxinyminutes-docs
Dynamic Programming / en: pseudocode is incomplete
Offen
- Vorherrschende Sprache
- Markdown
- Sterne
- 12.3k
- Forks
- 3.7k
- Ø Merge
- 13 Std. 10 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
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]
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.