mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-13 16:17:54 +00:00
7 lines
230 B
JavaScript
7 lines
230 B
JavaScript
async function findLISLength(nums){
|
|
const{bisectLeft}=await import('https://cdn.skypack.dev/d3-array');
|
|
const tails=[];
|
|
for(const n of nums)tails[bisectLeft(tails,n)]=n;
|
|
return tails.length;
|
|
}
|
|
export default findLISLength; |