fix: whitespace

This commit is contained in:
shola 2024-08-22 00:06:33 -07:00
parent e6c4d611b3
commit fcad8fa25b

View File

@ -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]);