body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, button, input, textarea, th, td { margin: 0; padding: 0; } body { font size: ...
分类:
Web程序 时间:
2020-01-28 12:42:09
阅读次数:
196
一、BusyBox1.1 BusyBox简介集成了一百多个最常用的Linux命令的镜像,不到2M,短小精悍我喜欢。1.2 获取镜像$docker search busybox官方下完1.22M$docker pull busybox:latest1.3 运行busybox运行之后会进入如下所示,可以... ...
分类:
其他好文 时间:
2020-01-28 11:03:29
阅读次数:
148
538 把二叉搜索树转换为累加树 给定一个二叉搜索树(Binary Search Tree),把它转换成为累加树(Greater Tree),使得每个节点的值是原来的节点值加上所有大于它的节点值之和。 例如: 来源:力扣(LeetCode) 链接:https://leetcode cn.com/pr ...
分类:
其他好文 时间:
2020-01-27 20:38:35
阅读次数:
74
自己mac电脑安装mysql,这里记录下,方便后面升级mysql或遇到版本兼容问题作出排查. #搜索查看可用版本 # tk @ MacBook-Pro in ~/www/l_project on git:test x [16:26:44] C:1 $ brew search mysql ==> Fo ...
分类:
数据库 时间:
2020-01-27 19:15:08
阅读次数:
217
在爱网上自己学习爬虫,并进行了一个实践。网站取自于https://www.bilibili.com/video/av75562300?from=search&seid=11774811603250332545 针对于https://vmgirls.com网站,对其一个子网站进行了爬去 采用reque ...
分类:
其他好文 时间:
2020-01-27 19:08:58
阅读次数:
70
深度优先搜索是一种枚举所有完整路径以遍历所有情况的搜索方法。(不撞南墙不回头) DFS一般用递归来实现,其伪代码思路过程一般如下: void DFS(必要的参数){ if (符和遍历到一条完整路径的尾部){ 更新某个全局变量的值 } if (跳出循环的临界条件){ return; } 对所有可能出现 ...
分类:
其他好文 时间:
2020-01-27 19:07:35
阅读次数:
99
广度优先搜索(Breadth First Search, BFS) BFS算法实现的一般思路为: // BFS void BFS(int s){ queue<int> q; // 定义一个队列 q.push(s); // 队首元素入队 while (!q.empty()){ // 取出队首元素top ...
分类:
其他好文 时间:
2020-01-27 18:50:43
阅读次数:
68
"题目" 题意:实现一个BST的Next()函数,输出BST里的从小到大的数字。 题解:题目说Next()的时间效率O(1),空间效率O(h),h为树的高度。我们维护一个栈,把前序遍历的左子树的结果存进去。 每次Next取出栈顶元素的时候,再遍历栈顶元素的右子树的前序遍历的左子树部分。 ...
分类:
其他好文 时间:
2020-01-27 17:34:01
阅读次数:
58
Configuration file Scrapyd searches for configuration files in the following locations, and parses them in order with the latest one taking more prior ...
分类:
其他好文 时间:
2020-01-27 17:21:16
阅读次数:
229
docker search nextcloud docker pull docker.io/nextcloud docker images mkdir /home/nextcloud chmod -R 777 nextcloud/ docker run -d --restart=always --n ...
分类:
其他好文 时间:
2020-01-27 17:05:29
阅读次数:
123