题目:给定一个二叉树, 找到该树中两个指定节点的最近公共祖先。https://leetcode-cn.com/problems/er-cha-shu-de-zui-jin-gong-gong-zu-xian-lcof/submissions/ 写在前面:这一题不同于68-I 二叉搜索树的最近公共祖先 ...
分类:
其他好文 时间:
2020-03-22 19:44:21
阅读次数:
67
命令行:sudo apt install squid 提示错误:package 'squid' has no installation candidate 尝试命令:sudo apt-get install squid 出现错误提示:Unable to locate pakage squid 输入: ...
分类:
系统相关 时间:
2020-03-22 19:31:50
阅读次数:
99
1、Refused to execute script from 'URL' because its MIME type ('texthtml') is not executable, a nd strict MIME type checking is enabled 问题出现的原因:静态文件路径错 ...
分类:
其他好文 时间:
2020-03-22 17:32:34
阅读次数:
79
贪心,有一些点少不留意就会wa #include <iostream> #include <cstdio> #include <cstring> #include <limits> //#include <stack> #include<queue> #include <algorithm> #de ...
分类:
其他好文 时间:
2020-03-21 21:43:42
阅读次数:
64
import requestsimport bs4 url = "https://search.bilibili.com/all?keyword=%E7%BA%AA%E5%BD%95%E7%89%87"header={'User-Agent':""}de = requests.get(url)de. ...
分类:
其他好文 时间:
2020-03-21 21:04:39
阅读次数:
95
并查集+贪心 https://vjudge.net/contest/362147#problem/C #include <iostream> #include <cstdio> #include <cstring> #include <limits> #include <algorithm> #de ...
分类:
其他好文 时间:
2020-03-21 20:56:28
阅读次数:
60
基于CL_SALV_TABLE创建的SALV有些限定和需要注意事项,如下: SALV的列数最多只能显示90列 SALV每个单元格最长输出128个字符 排序和小记(sort 和 subtotals)最多9层或9列 合计或小记的字段长度一定要够长,防止溢出 SALV显示的字段一定要是flat的不能是de ...
分类:
其他好文 时间:
2020-03-21 16:29:54
阅读次数:
55
由于浏览器必须要在执行事件处理函数之后,才能知道有没有掉用过 preventDefault() ,这就导致了浏览器不能及时响应滚动,略有延迟。 所以为了让页面滚动的效果如丝般顺滑,从 chrome56 开始,在 window、document 和 body 上注册的 touchstart 和 tou ...
分类:
其他好文 时间:
2020-03-21 14:49:59
阅读次数:
48
84.最小的k个数 题目链接 https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/ 题目描述 输入整数数组 arr ,找出其中最小的 k 个数。例如,输入4、5、1、6、2、7、3、8这8个数字,则最小的4个数字是1、2、3、4。 示例 ...
分类:
其他好文 时间:
2020-03-20 21:58:37
阅读次数:
96
安装插件时,弹出提示框: Package Control Unable to download XXX. Please view the console for more details. 一番搜索后在github上找到答案: 解决方法:在这里插入图片描述1.打开Sublime Text,Prefe ...
分类:
其他好文 时间:
2020-03-20 14:30:25
阅读次数:
627