mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
9 lines
233 B
JavaScript
9 lines
233 B
JavaScript
const findLISLength = async nums => {
|
|
const { bisectLeft } = await import('https://esm.sh/d3-array')
|
|
const sub = []
|
|
for (const n of nums) {
|
|
sub[bisectLeft(sub, n)] = n
|
|
}
|
|
return sub.length
|
|
}
|
|
export default findLISLength; |