E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)E: Unable to lock the administration directory (/var/lib/dpkg/), are you ...
分类:
系统相关 时间:
2020-07-26 15:56:12
阅读次数:
98
Find Minimum in Rotated Sorted Array II (H) 题目 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [ ...
分类:
其他好文 时间:
2020-07-26 15:29:37
阅读次数:
58
题目描述 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair ...
分类:
其他好文 时间:
2020-07-26 15:22:02
阅读次数:
59
1. 函数重载的回顾 同一个函数名定义不同函数(互不相同的函数,共享一个函数名) (1)函数重载的本质为相互独立的不同函数 (2)C++中通过函数名和函数参数确定函数调用,函数名和参数列表组成唯一的标识 (3)无法直接通过函数名得到重载函数的入口地址 重载函数的入口地址不同 (4)函数重载必然发生在 ...
分类:
其他好文 时间:
2020-07-26 01:26:00
阅读次数:
60
In this note,you will not find the concept of QS and the method of how to compute the cost of time and space of this algorithm。This page will not refe ...
分类:
其他好文 时间:
2020-07-26 01:23:01
阅读次数:
76
题目链接 https://leetcode-cn.com/problems/merge-two-binary-trees/ 题解 递归解法 解法见代码注释 // Problem: LeetCode 617 // URL: https://leetcode-cn.com/problems/merge- ...
分类:
其他好文 时间:
2020-07-26 01:03:49
阅读次数:
54
1. 批量重命名文件为数字编号 进入所需要重命名的数据集的文件夹,在终端运行 $ i=k; for x in ./*; do mv $x $i.mp4; let i=i+1; done # 'k' is the start number you want, such as 1 or 1000; '. ...
分类:
系统相关 时间:
2020-07-26 00:44:57
阅读次数:
112
forEachRemaining()是java1.8新增的Iterator接口中的默认方法对于这个方法,官方文档是这么描述的:Performs the given action for each remaining element until all elements have been proce ...
分类:
其他好文 时间:
2020-07-26 00:20:40
阅读次数:
200
##题面 he length of the longest common prefix of two strings s=s1s2…sn and t=t1t2…tm is defined as the maximum integer k (0≤k≤min(n,m)) such that s1s2…s ...
分类:
其他好文 时间:
2020-07-26 00:15:56
阅读次数:
106
1. 在ffplay中音画同步的实现方式其实有三种,分别是: 以音频为主时间轴作为同步源;(ffplay的默认方式),ubuntu16下测试偶有卡顿,效果比下面两种的好 ffplay 32037.mp4 -sync audio 以视频为主时间轴作为同步源;(音频播放会有重复渲染,拖长音) ffpla ...
分类:
其他好文 时间:
2020-07-24 22:16:05
阅读次数:
94