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 ...
分类:
其他好文 时间:
2016-07-13 11:47:43
阅读次数:
125
Another fun Greedy problem to work on: we simply go from first to second last person, as long someone is odd, we distribute bread to her and her next. ...
分类:
其他好文 时间:
2016-07-13 08:01:36
阅读次数:
175
Introduction to Java Development
Last updated: 12 February, 2013.
As of OpenCV 2.4.4, OpenCV supports desktop Java development using nearly the same interface as for Android development. This gu...
分类:
系统相关 时间:
2016-07-12 10:34:30
阅读次数:
424
通常程序发生致命错误的时候页面空白,想获取错误信息也不难!主要是利用两个函数:error_get_last() 获取最后一次发生错误信息:print_r()后结构如下: register_shutdown_function()在脚本停止执行时注册一个回调函数: ...
分类:
Web程序 时间:
2016-07-11 19:10:10
阅读次数:
1728
vim 操作模式 Commamd Mode - 命令模式 Insert Mode - 输入模式 Last Line Mode - 底行模式 i,o:进入输入模式 exc:进入底行模式 在命令模式中dd:删除光标所在的当前行【其他参考vim常用示意图】 h,j,k,l:上下左右移动光标 ctrl+f: ...
分类:
系统相关 时间:
2016-07-11 18:56:11
阅读次数:
286
数据结构1、堆:先进先出(FIFO — First In First Out )2、栈:先进后出(FILO — First In Last Out )C/C++一个由编译的程序占用的内存分为以下几个部分:1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数名,局部变量的名等。其操作方式类 ...
分类:
其他好文 时间:
2016-07-11 18:39:04
阅读次数:
143
主从架构。今天发现从库SQL线程报错,主从复制停止了。查看错误发现: Last_SQL_Errno: 1205 Last_SQL_Error: Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider r... ...
分类:
数据库 时间:
2016-07-11 12:27:12
阅读次数:
680
找了很多方法,utf-8也设置了,还是不行,只有有转码方法了 web_reg_save_param("res2", "LB=\"msg\":\"", "RB=\"", "Search=Body", LAST); lr_start_transaction("Web_注册_register_bean") ...
分类:
其他好文 时间:
2016-07-11 12:00:41
阅读次数:
180
awk工具,主要将一行分成“字段”来处理。 awk '条件类型1{动作1} 条件类型2{动作2}...‘ filename awk主要是处理每一行的字段内的数据,而默认的字段的分隔符为空格键或[tab]键 last -n 4 | awk '{ print $1 "\t" $3}' 变量$0代表一整行 ...
分类:
其他好文 时间:
2016-07-11 01:04:38
阅读次数:
156