We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b551119 commit ff5f70aCopy full SHA for ff5f70a
src/sequences/longest_increasing_subsequence.md
@@ -46,7 +46,7 @@ Then there are two options:
46
47
- $d[i] = 1$: the required subsequence consists only of the element $a[i]$.
48
49
-- $d[i] > 1$: The subsequence will end it $a[i]$, and right before it will be some number $a[j]$ with $j < i$ and $a[j] < a[i]$.
+- $d[i] > 1$: The subsequence will end at $a[i]$, and right before it will be some number $a[j]$ with $j < i$ and $a[j] < a[i]$.
50
51
It's easy to see, that the subsequence ending in $a[j]$ will itself be one of the longest increasing subsequences that ends in $a[j]$.
52
The number $a[i]$ just extends that longest increasing subsequence by one number.
0 commit comments