Docs: Update benchmark results

This commit is contained in:
github-actions[bot]
2025-11-18 23:31:52 +00:00
parent 341252fec1
commit 5855cf8a6f
77 changed files with 972 additions and 1051 deletions

View File

@@ -1,16 +1,16 @@
async function findLISLength(nums) {
const findLISLength = async (nums) => {
if (!nums?.length) {
return 0;
}
const { bisectLeft } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm');
const sub = [];
const { bisectLeft } = await import('https://cdn.jsdelivr.net/npm/d3-array/+esm');
for (const num of nums) {
sub[bisectLeft(sub, num)] = num;
}
const tails = [];
return sub.length;
}
nums.forEach((num) => {
tails[bisectLeft(tails, num)] = num;
});
return tails.length;
};
export default findLISLength;