上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页
摘要: 缓存优化查询 const fs=require('fs'); //比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1, function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&i 阅读全文
posted @ 2020-07-04 14:15 无工时代 阅读(288) 评论(0) 推荐(0)
摘要: const fs=require('fs');//比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1,function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&index<str1 阅读全文
posted @ 2020-07-03 00:31 无工时代 阅读(237) 评论(0) 推荐(0)
摘要: //比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1,function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&index<str1.length){ if(str1.charC 阅读全文
posted @ 2020-07-01 19:00 无工时代 阅读(148) 评论(0) 推荐(0)
摘要: 后缀数组sa,告诉你,排第几的是谁 名次数组rank, 告诉你,你排第几 height数组,i为排名,排名为i的后缀为sa[i] height[i]表示后缀sa[i]和sa[i-1]的最长公共前缀的长度n //二分查找法,返回最接近的位置和实际位置function binary_find(id,ha 阅读全文
posted @ 2020-06-26 15:55 无工时代 阅读(229) 评论(0) 推荐(0)
摘要: //二分查找法,返回最接近的位置和实际位置 function binary_find(id,hasSortArr){ let l=0,r=hasSortArr.length; let index=-1; while(r-l>0){ const m=(l+r)>>1; const mid=hasSor 阅读全文
posted @ 2020-06-25 16:46 无工时代 阅读(370) 评论(0) 推荐(0)
摘要: 用四叉树对图像分类,获取tag和key function getMid(num) { if(num%2 0){ return num/2 }else{ return (num+1)/2 } } function getFourTree(rect,[x1,y1,x2,y2],deep) { if(de 阅读全文
posted @ 2020-06-15 17:16 无工时代 阅读(335) 评论(0) 推荐(0)
摘要: 求多文字区块-团矩阵合并 阅读全文
posted @ 2020-05-28 15:26 无工时代 阅读(150) 评论(0) 推荐(0)
摘要: 使用 JavaScript 创建并下载文件 function createAndDownloadFile(fileName, content) { var aTag = document.createElement('a'); var blob = new Blob([content]); aTag 阅读全文
posted @ 2020-05-28 15:23 无工时代 阅读(336) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-05-20 14:37 无工时代 阅读(173) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-09 16:55 无工时代 阅读(0) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 28 下一页