Skip to content

Commit ff5f70a

Browse files
authored
Update longest_increasing_subsequence.md
Fixed one word typo.
1 parent b551119 commit ff5f70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sequences/longest_increasing_subsequence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Then there are two options:
4646

4747
- $d[i] = 1$: the required subsequence consists only of the element $a[i]$.
4848

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]$.
49+
- $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]$.
5050

5151
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]$.
5252
The number $a[i]$ just extends that longest increasing subsequence by one number.

0 commit comments

Comments
 (0)