这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an
algorithm to find the maximum profit. You may complete at most two transactions.
3 * @pa...
分类:
其他好文 时间:
2014-07-22 23:01:13
阅读次数:
251
devAuth
是swift原生的认证中间层,Swauth是为了解决devAuth不能扩展的问题而开发的替代方案。Quick Install#git
clonehttps://github.com/gholt/swauth.git1) Install Swauth withsudopython se...
分类:
其他好文 时间:
2014-07-22 22:59:15
阅读次数:
359
ubuntu安装opencv(1)安装编译opencv的环境sudo apt-get -y
install build-essential cmake pkg-config(2)安装Image I/O库sudo apt-get -y install
libjpeg62-dev sudo apt-ge...
分类:
其他好文 时间:
2014-05-01 22:42:45
阅读次数:
451
新建android项目时,总是说"javahl, require version
1.8"云云。dpkg -l | grep libsvn-java1.6apt-get update还是1.6google:$ apt-get install
subversion$ apt-get install l...
分类:
编程语言 时间:
2014-05-01 21:46:06
阅读次数:
522
activating vt-x from biosIf you have HP
EliteBook 8770w do:Shutdown your mobile workstation.Push startup buttonpush ESC
keypush F10 to open BIOS setup...
分类:
其他好文 时间:
2014-05-01 21:08:36
阅读次数:
512
题目: Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique lo...
分类:
其他好文 时间:
2014-05-01 20:07:13
阅读次数:
429
Determine whether an integer is a palindrome.
Do this without extra space.Some hints:Could negative integers be palindromes?
(ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-05-01 19:48:19
阅读次数:
344
这个就不写了,直接传送门过去看,按照说的做就可以了
分类:
其他好文 时间:
2014-05-01 18:53:14
阅读次数:
284
安装Everpad
sudo add-apt-repository ppa:nvbn-rm/ppa
sudo apt-get update
sudo apt-get install everpad...
分类:
系统相关 时间:
2014-05-01 17:35:52
阅读次数:
490
安装视频流传输服务器
我们用开源软件包mjpg-streamer
来实现视频流传输服务器。客户端可以是浏览器或者是专门的APP。
先安装几个库文件包
$sudo apt-get install libv4l-dev
$sudo apt-get install libjpeg8-dev
$sudo apt-get install subversion...
分类:
其他好文 时间:
2014-04-30 22:16:38
阅读次数:
398