[ 问题: ]
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
大家可能会被拼写错误提示所烦扰。只要简单几步即可取消拼写检查window ->
Preferences - >General -> Editors -> Spelling -> Enable spell
checking 把钩去掉即可
分类:
系统相关 时间:
2014-05-10 19:58:23
阅读次数:
724
今天,所谓的劳动节,其实只是给予大部分行业的人,但是对于技术类或者是服务行业,都是没有所谓的休息假期。因为每次放假,反而是一个商机。
早上,刚整理完店面摆设,没多久就来了一位客户需要重装电脑。说电脑中毒,一开机检测, disk error, 问是否需要保存资料,得到的是“...
分类:
其他好文 时间:
2014-05-02 12:47:30
阅读次数:
354
I am out of the office until 0X/0X/201X.I will be
checking my email regularly. Please leave a complete message for me and I will
respond immediately w...
分类:
其他好文 时间:
2014-05-02 11:14:21
阅读次数:
2686
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
用久了ubuntu的人,很多人会忽然出个提示:磁盘空间不足1G! 然后分析半天。。最近也碰到类似问题,记录如下:
一:.xsession-errors.old
可以在终端看到主用户目录下有这么一个隐藏文件,我看到的时候 大小有22G左右!网上查了,说这个文件是因为我们本机与server之间通信错误的记录集合,会不断的增加记录。
有人提议可以写个脚本定期删除这个文件,这样太麻烦了,可以...
分类:
其他好文 时间:
2014-05-01 18:21:57
阅读次数:
346
在memory.c里面,遇到一个宏定义,如下:
#define CODE_SPACE(addr) ((((addr)+4095)&~4095) start_code + current->end_code)
看的第一眼,不知道,第二眼,还是不知道,纠结了半天还是不知道。
睡了一晚,今天早上再看,嘿嘿,居然看懂了。。。
这个宏定义用于判断给定的addr线...
分类:
系统相关 时间:
2014-05-01 17:54:09
阅读次数:
516
方案一:利用UINavigationBar 自带的布局item(Fixed space Bar Button Item)来适配ios7. 其实就是在原来返回按钮的位置上在多加一个占位的Item
为UINavigationBar 写一个分类。UINavigationItem+correct_offset.h
#import
@interface UINavigationIte...
分类:
移动开发 时间:
2014-05-01 17:29:39
阅读次数:
525
刚才下班回家的路上,接到客户的电话:"回家了吗?我们这边的一套RAC库有个节点有问题哦,一直刷异常,一下子就把磁盘弄满了,我现在停掉了那个节点了。从日志上看好像跟权限有关,现在还有个实例跑着,暂时不影响业务。一会你帮看看?“
回到家以后,通过QQ客户传来日志过来,一直刷的异常如下: ...
分类:
其他好文 时间:
2014-05-01 09:30:43
阅读次数:
487