mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
12 lines
271 B
JavaScript
12 lines
271 B
JavaScript
async function findLISLength(a){
|
|
let {bisectLeft}=await import('https://cdn.jsdelivr.net/npm/d3-array@3')
|
|
let t=[]
|
|
for(let x of a){
|
|
let i=bisectLeft(t,x)
|
|
t[i]=x
|
|
}
|
|
return t.length
|
|
}
|
|
export default findLISLength;
|
|
// Generation time: 8.286s
|
|
// Result: FAIL
|