Given a non-overlapping interval list which is sorted by start point. Insert a new interval into it, make sure the list is still in order and non-over ...
分类:
其他好文 时间:
2017-07-14 14:51:18
阅读次数:
187
channel初步认识: package main import "fmt" import "time" func main() { c := make(chan int) //初始化一个管道 defer close(c) //在main函数执行完毕之后执行。 go func() { //会开启一个 ...
分类:
其他好文 时间:
2017-07-14 13:23:24
阅读次数:
146
第一步下载man中文手册压缩包 第二步cd到解压的目录manpages-zh-1.5.1,再配置安装路径 第三步编译、安装: make && make install 第四部设置别名 第五步 source .bashrc //使刚设置的别名cman命令生效 ...
分类:
其他好文 时间:
2017-07-14 13:19:46
阅读次数:
192
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your ...
分类:
其他好文 时间:
2017-07-14 13:15:31
阅读次数:
195
1,准备ruby环境安装rubywgethttps://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz
tarxvfruby-2.4.1.tar.gz
cdruby-2.4.1.tar.gz
cdruby-2.4.1
./configure--prefix=/usr/local/ruby
make
makeinstall
cpbin/ruby/usr/local/bin/
cpbin/gem/usr/local/bin/安装rubygem..
分类:
其他好文 时间:
2017-07-14 10:16:26
阅读次数:
2846
以下题目均自己搜 F题 A序列 一开始真的没懂题目什么意思,还以为是要连续的子串,结果发现时序列,简直智障,知道题意之后,好久没搞LIS,有点忘了,复习一波以后,直接双向LIS,处理处两个数组L和R,然后对整个数组扫一遍对于每一个下标取m=min(L[i],R[i]);用ans取2*m-1中的最大值 ...
分类:
其他好文 时间:
2017-07-13 23:42:58
阅读次数:
264
Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incrementing n ...
分类:
其他好文 时间:
2017-07-13 22:54:09
阅读次数:
259
[root@embedded secbulk]# make -C /lib/modules/`uname -r`/build M=`pwd` modules make: *** /lib/modules/2.6.32-71.el6.i686/build: 没有那个文件或文件夹。 停止。 [root@ ...
分类:
系统相关 时间:
2017-07-13 22:44:31
阅读次数:
289
(I will try my best to make this note clearer. We mainly focus on solve_c_svc in this note) We mainly focus on solve_c_svc in this note. Our goal: min ...
分类:
编程语言 时间:
2017-07-13 21:58:02
阅读次数:
296
题目大意:给你一个序列和一些操作,让你实现这些操作,并回答询问。具体操作见题目。 解题思路:因为输入的东西需要xor之前输出的yes个数,所以本题是强制在线。 一个序列形成等差数列必须满足以下三个条件: 1.序列最小数+公差*(项数-1)=序列最大数; 2.该区间差分后的gcd=公差; 3.数字各不 ...
分类:
其他好文 时间:
2017-07-13 20:22:50
阅读次数:
150