Files
lynchmark/tests/3_lis/outputs/google_gemini-3.1-flash-lite-preview.js
2026-03-03 22:42:09 +00:00

14 lines
354 B
JavaScript

async function findLISLength(nums) {
const { bisectLeft } = await import('https://cdn.skypack.dev/d3-array');
const tails = [];
for (const x of nums) {
const i = bisectLeft(tails, x);
i === tails.length ? tails.push(x) : (tails[i] = x);
}
return tails.length;
}
export default findLISLength;
// Generation time: 0.903s
// Result: PASS