![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常用算法
ughome
这个作者很懒,什么都没留下…
展开
-
openssl lhash结构
openssl lhash数据结构分析原创 2022-09-29 19:28:20 · 183 阅读 · 0 评论 -
【快速排序】
int sort(int *data,int left,int right){//一轮下来要找到哨兵的位置。 if(left>right) return 0; int i=left; int j=right; int key=data[left]; while(i<j){ while(i<j&&key<data[j]){ //先从后向前找,如果哨兵小,就一直想前找 .原创 2022-04-08 14:27:43 · 40 阅读 · 0 评论 -
字符串暴力查找
package algorithm;public class BaoliPattern { public static void main(String[] args) { // TODO Auto-generated method stub String str="hello world"; String pattern="world"; int index=substring(str,pattern); System.out.print(index); } publi.原创 2022-04-08 14:35:57 · 39 阅读 · 0 评论 -
kmp算法
package algorithm;public class KMP { public static void main(String[] args) { // TODO Auto-generated method stub //abcbfedabfea //abfeab //000012 String str = "hello worlbaawworld"; String pattern = "...原创 2022-04-10 10:19:08 · 189 阅读 · 0 评论