Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4251ea

Browse files
authored
Merge pull request#1525 from arjunUpatel/patch-5
Fix typo in longest_increasing_subsequence.md
2 parents0e77dbf +cd71e06 commitc4251ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/dynamic_programming/longest_increasing_subsequence.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ This method leads to a slightly longer code, but in return we save some memory.
145145
In order to obtain a faster solution for the problem, we construct a different dynamic programming solution that runs in $O(n^2)$, and then later improve it to $O(n \log n)$.
146146

147147
We will use the dynamic programming array $d[0 \dots n]$.
148-
This time $d[l]$ doesn'tcorresponds to the element $a[i]$ or toan prefix of the array.
148+
This time $d[l]$ doesn'tcorrespond to the element $a[i]$ or toa prefix of the array.
149149
$d[l]$ will be the smallest element at which an increasing subsequence of length $l$ ends.
150150

151151
Initially we assume $d[0] = -\infty$ and for all other lengths $d[l] = \infty$.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp