会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ginn123
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2020年10月23日
二分法查找
摘要: https://baijiahao.baidu.com/s?id=1669750553177807262&wfr=spider&for=pc LCP 12. 小张刷题计划 https://leetcode-cn.com/problems/xiao-zhang-shua-ti-ji-hua/ 这里一开
阅读全文
posted @ 2020-10-23 09:16 ginn123
阅读(97)
评论(0)
推荐(0)
2020年10月22日
shell没有办法读取xml的文本内容
摘要: -- xml文件编码问题,find失败。
阅读全文
posted @ 2020-10-22 14:28 ginn123
阅读(70)
评论(0)
推荐(0)
jenkins 通过shell启动tomcat会随着job完成而被自动关闭的解决方法
摘要: #!/bin/bash BUILD_ID=123 cd /usr1/tomcat8/bin && ./startup.sh sleep 5 原理:https://wiki.jenkins.io/display/JENKINS/ProcessTreeKiller
阅读全文
posted @ 2020-10-22 14:27 ginn123
阅读(215)
评论(0)
推荐(0)
查阅正在改变的日志文件 tail -f
摘要: xxx:/usr1/tomcat8/logs # tail -f catalina.out tail 命令可用于查看文件的内容,有一个常用的参数 -f 常用于查阅正在改变的日志文件。 tail -f filename 会把 filename 文件里的最尾部的内容显示在屏幕上,并且不断刷新,只要 fi
阅读全文
posted @ 2020-10-22 14:25 ginn123
阅读(100)
评论(0)
推荐(0)
二叉树遍历
摘要: 前序遍历(父节点->左孩子->右孩子) 中序遍历(左孩子->父节点->右孩子) 后序遍历(左孩子->右孩子->父节点)
阅读全文
posted @ 2020-10-22 14:22 ginn123
阅读(83)
评论(0)
推荐(0)
BFS
摘要: leetcode 994 腐烂的橘子 https://leetcode-cn.com/problems/rotting-oranges/ DFS(深度优先搜索)和 BFS(广度优先搜索) DFS 与 BFS BFS 可以看成是层序遍历。从某个结点出发,BFS 首先遍历到距离为 1 的结点,然后是距离
阅读全文
posted @ 2020-10-22 10:25 ginn123
阅读(121)
评论(0)
推荐(0)
KMP算法
摘要: https://segmentfault.com/a/1190000008575379 i = 0,对于模式串的首字符,我们统一为next[0] = -1; i = 1,前面的字符串为A,其最长相同真前后缀长度为 0,即next[1] = 0; i = 2,前面的字符串为AB,其最长相同真前后缀长度
阅读全文
posted @ 2020-10-22 10:21 ginn123
阅读(48)
评论(0)
推荐(0)
背包问题 -- 动态规划 -- 堆优化
摘要: 动态规划:https://blog.csdn.net/libosbo/article/details/80038549 背包问题:https://blog.csdn.net/qq_40778406/article/details/80581238 优先队列:https://blog.csdn.net
阅读全文
posted @ 2020-10-22 09:56 ginn123
阅读(188)
评论(0)
推荐(0)
Line 55: Char 44: runtime error: store to address 0x625000318040 with insufficient space for an object of type 'int *' (solution.c)
摘要: 关注代码逻辑,是否死循环(但是这个在简单的示例中就能发现) 前期申请空间太多,合理安排内存申请 // int **returnArr = (int **)malloc(sizeof(int *) * 1000); // *returnColumnSizes = (int *)malloc(sizeo
阅读全文
posted @ 2020-10-22 09:52 ginn123
阅读(2025)
评论(0)
推荐(0)
上一页
1
2
公告