mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
fix: whitespace
This commit is contained in:
parent
e6c4d611b3
commit
fcad8fa25b
@ -55,7 +55,7 @@ export default function dpLongestIncreasingSubsequence(sequence) {
|
||||
|
||||
while (rightIndex > -1) {
|
||||
const leftIndex = lengthsArray.findLastIndex((item, idx) => (
|
||||
item === lengthsArray[rightIndex] - 1 && idx < rightIndex
|
||||
item === lengthsArray[rightIndex] - 1 && idx < rightIndex
|
||||
));
|
||||
|
||||
longestIncreasingSubsequence.unshift(sequence[rightIndex]);
|
||||
|
Loading…
Reference in New Issue
Block a user