mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for minimax/minimax-m2.5
This commit is contained in:
12
tests/3_lis/outputs/minimax_minimax-m2.5.js
Normal file
12
tests/3_lis/outputs/minimax_minimax-m2.5.js
Normal file
@@ -0,0 +1,12 @@
|
||||
async function findLISLength(arr) {
|
||||
const { bisectLeft } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm');
|
||||
const tails = [];
|
||||
for (const v of arr) {
|
||||
const i = bisectLeft(tails, v);
|
||||
i === tails.length ? tails.push(v) : (tails[i] = v);
|
||||
}
|
||||
return tails.length;
|
||||
}
|
||||
export default findLISLength;
|
||||
// Generation time: 22.716s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user