月度归档: 2017年8月

5 篇文章

LeetCode:38.Count and Say
Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, …1 is read off as one 1 or 11.11 is read off as two 1s or 21.…
LeetCode:35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no du…
Ubuntu 16.04 apt-get更换为国内阿里云源
1,备份系统默认的源(没有root权限的前面加sudo)cp /etc/apt/sources.list /etc/apt/sources.list.bak2,修改/etc/apt/sources.list>/etc/apt/sources.list cat >>/etc/apt/sources.list<<EOF #…
LeetCode:27. Remove Element
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place wit…