mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
Docs: Update benchmark for openrouter/sherlock-dash-alpha
This commit is contained in:
12
tests/3_lis/outputs/openrouter_sherlock-dash-alpha.js
Normal file
12
tests/3_lis/outputs/openrouter_sherlock-dash-alpha.js
Normal file
@@ -0,0 +1,12 @@
|
||||
async function findLISLength(arr) {
|
||||
const {bisectLeft} = await import('https://cdn.skypack.dev/d3-array');
|
||||
if(!arr.length) return 0;
|
||||
const tails = [];
|
||||
for(const x of arr) {
|
||||
const i = bisectLeft(tails, x);
|
||||
if(i === tails.length) tails.push(x);
|
||||
else tails[i] = x;
|
||||
}
|
||||
return tails.length;
|
||||
}
|
||||
export default findLISLength;
|
||||
Reference in New Issue
Block a user