Files
lynchmark/tests/3_lis/outputs_gemini/gemini-3-pro-preview TEMP_1.1.js
2025-11-18 22:04:41 +00:00

10 lines
274 B
JavaScript

async function findLISLength(a) {
const { bisectLeft: b } = await import('https://cdn.jsdelivr.net/npm/d3-array/+esm')
const t = []
for (const n of a) {
const i = b(t, n)
i < t.length ? t[i] = n : t.push(n)
}
return t.length
}
export default findLISLength;