mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
9 lines
265 B
JavaScript
9 lines
265 B
JavaScript
export const findLISLength = async a => {
|
|
const { bisectLeft } = await import("https://esm.sh/d3-array");
|
|
const s = [];
|
|
for (const x of a) s[bisectLeft(s, x)] = x;
|
|
return s.length;
|
|
};
|
|
export default findLISLength;
|
|
// Generation time: 15.537s
|
|
// Result: PASS
|