Files
lynchmark/tests/3_lis/outputs/openai_gpt-5.1-chat.js
2025-11-14 03:31:28 +00:00

10 lines
258 B
JavaScript

async function findLISLength(a) {
const {bisectLeft} = await import("https://cdn.jsdelivr.net/npm/d3-array@3/+esm");
const t = [];
for (const x of a) {
const i = bisectLeft(t, x);
t[i] = x;
}
return t.length;
}
export default findLISLength;