Files
lynchmark/tests/3_lis/outputs/moonshotai_kimi-k2-thinking.js
2025-11-27 19:36:55 +00:00

10 lines
308 B
JavaScript

export async function findLISLength(a){
const{bisectLeft}=await import('https://esm.sh/d3-array');
if(!Array.isArray(a))return 0;
const t=[];
for(const v of a){const i=bisectLeft(t,v);i===t.length?t.push(v):t[i]=v;}
return t.length;
}
export default findLISLength;
// Generation time: 39.477s
// Result: PASS