[ 问题: ]
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
[...
分类:
其他好文 时间:
2014-07-22 23:01:35
阅读次数:
331
Space AntTime Limit:1000MSMemory Limit:10000KTotal
Submissions:2934Accepted:1874DescriptionThe most exciting space discovery
occurred at the end of th...
分类:
其他好文 时间:
2014-07-22 22:59:15
阅读次数:
365
当系统物理内存不足时,内存交换空间(swap)用来紧急应付内存不足的情况,和windows中虚拟内存用法差不多。使用物理分区构建swap空间1、首先新建一个swap分区/dev/sda42、构建swap格式3、查看与加载使用swapon启用使用swapon–s查看4、禁用swap分区使用swapoff命令使用文件构建s..
分类:
其他好文 时间:
2014-05-02 04:03:05
阅读次数:
451
磁盘的分区fdisk使用fdisk–l将所有设备的分区全部列出来对/dev/sda2进行操作输入m获取帮助常用命令p显示分区表n增加一个新的分区e代表扩展分区p代表主分区选择后再确定分区大小使用fdisk–l查看,发现多了一个/dev/sda4扩展分区d删除一个分区q退出fdisk并且不保存任何操作w将..
分类:
其他好文 时间:
2014-05-02 03:41:32
阅读次数:
307
计算\[\int_0^\infty {\frac{{\cos \left( {mx}
\right)}}{{{x^4} + {x^2} + 1}}dx.}\]解:留数理论的一种解答:注意到\[\int_0^\infty {\frac{{\cos
\left( {mx} \right)}}{{{x^4...
分类:
其他好文 时间:
2014-05-02 02:14:53
阅读次数:
248
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
需求架构准备工作主从服务器时间同步#
主从服务器同时配置crontab任务,与NTP服务器同步时间即可*/5 * * * * ntpdate 172.16.0.1
&>/dev/null部署配置主库配置vi /etc/my.cnf server-id = 1 # 在复制架构中,需保持全局唯一 ...
分类:
数据库 时间:
2014-05-01 22:27:40
阅读次数:
699
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
树形结构是一类重要的非线性数据结构,其中以树和二叉树最为常用。
二叉树是每个结点最多有两个子树的有序树。通常子树的根被称作“左子树”(left subtree)和“右子树”(right subtree)。二叉树常被用作二叉查找树和二叉堆或是二叉排序树。二叉树的每个结点至多只有二棵子树(不存在度大于2的结点),二叉树的子树有左右之分,次序不能颠倒。二叉树的第i层至多有2的 i -1次方个结点;...
分类:
其他好文 时间:
2014-04-30 22:44:38
阅读次数:
501
安装视频流传输服务器
我们用开源软件包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