Style changed

This commit is contained in:
Omkarnath Parida
2020-10-04 11:51:10 +05:30
parent 838abade98
commit 87b2eb0292

View File

@ -14,12 +14,13 @@ function main () {
for (let j = 0; j < i; j++) {
if (x[i] > x[j]) {
dp[i] = Math.max(dp[i], 1 + dp[j])
if (dp[i] > res)
if (dp[i] > res) {
res = dp[i]
}
}
}
}
console.log('Length of Longest Increasing Subsequence is:', res)
}