会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ginn123
博客园
首页
新随笔
联系
订阅
管理
2020年11月30日
滑动窗口?
摘要: 别人的总结帖 https://leetcode-cn.com/problems/corporate-flight-bookings/solution/xi-fa-dai-ni-xue-suan-fa-yi-ci-gao-ding-qian-zhu-5/ leetcode题目:https://leet
阅读全文
posted @ 2020-11-30 20:05 ginn123
阅读(70)
评论(0)
推荐(0)
2020年11月23日
shell 脚本拷贝文件,报cannot stat : no such file or directory
摘要: 有这个目录下的文件! 哇!!我吐血了 因为公司有白盒要求,所以路径的变量都是用双引号包含的 cp "\({xxxpath}/*.h" "\)" 啊啊啊 不能把*.h放在“”里面,会被认成一个整体的。 cp "\({xxxpath}"/*.h "\)"
阅读全文
posted @ 2020-11-23 17:10 ginn123
阅读(1472)
评论(0)
推荐(0)
2020年11月20日
指针传递
摘要: 老是记不住。 void test(int *arr) { arr[0] = 100; printf("function %d\n", arr[0]); } main: int *abc=(int *)malloc(sizeof(int) * 5); for (i = 0; i < 5; i++) {
阅读全文
posted @ 2020-11-20 15:10 ginn123
阅读(144)
评论(0)
推荐(0)
2020年11月19日
查看一个目录下所有文件,匹配内容
摘要: 一开始用的命令: find . -type f -name "*" | xargs cat | grep "xxx" 报错:、 Binary file (standard input) matches xargs: cat: terminated by signal 13 百度之后,可能是cat完之
阅读全文
posted @ 2020-11-19 20:40 ginn123
阅读(406)
评论(0)
推荐(0)
2020年11月17日
leetcode 烦人的返回值
摘要: int** reconstructQueue(int** people, int peopleSize, int* peopleColSize, int* returnSize, int** returnColumnSizes){ int **returnArr = (int **)malloc(s
阅读全文
posted @ 2020-11-17 19:44 ginn123
阅读(312)
评论(0)
推荐(0)
2020年11月9日
科目二错题集
摘要: 因为p是指针,相当于 加了4个long的地址,即+16. 2. 一个函数的扇出太大就意味着它调用了很多其他函数,那么其中任何一个函数修改了都会影响到它,如果下层有函数修改了,而它没有做相应的调整,那么肯定出错,导致维护起来很不方便,也就失去了模块化的根本意义方便性,而我们都知道软件的维护成本是很高的
阅读全文
posted @ 2020-11-09 21:49 ginn123
阅读(85)
评论(0)
推荐(0)
2020年11月6日
sed 用法
摘要: 更换指定行的匹配内容 sed -i "208{s/CC_TEXT/new_TEXT/}" xxx.sh
阅读全文
posted @ 2020-11-06 14:47 ginn123
阅读(60)
评论(0)
推荐(0)
2020年11月3日
KMP算法
摘要: https://segmentfault.com/a/1190000008575379 i = 0,对于模式串的首字符,我们统一为next[0] = -1; i = 1,前面的字符串为A,其最长相同真前后缀长度为 0,即next[1] = 0; i = 2,前面的字符串为AB,其最长相同真前后缀长度
阅读全文
posted @ 2020-11-03 14:42 ginn123
阅读(62)
评论(0)
推荐(0)
2020年10月30日
https网站搭建
摘要: 写的比较详细的 https://iyaozhen.com/nginx-https-conf.html
阅读全文
posted @ 2020-10-30 14:50 ginn123
阅读(54)
评论(0)
推荐(0)
2020年10月28日
recipe commences before first target. Stop 错误分析
摘要: makefile文件有一个非常令人遗憾的语法现象:控制和制表符tab是有区别的。规则所在行必须以tab开头,空格也不行。
阅读全文
posted @ 2020-10-28 11:35 ginn123
阅读(5321)
评论(0)
推荐(0)
下一页
公告