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.
Note: A word is defin...
分类:
其他好文 时间:
2015-03-15 00:55:38
阅读次数:
170
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-03-14 21:43:57
阅读次数:
145
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2015-03-13 23:53:03
阅读次数:
403
题目:
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from...
分类:
其他好文 时间:
2015-03-13 12:44:23
阅读次数:
139
一、中断初始化 1、中断向量表IDT的初始化void __init init_IRQ(void)
{
int i;
#ifndef CONFIG_X86_VISWS_APIC
init_ISA_irqs();
#else
init_VISWS_APIC_irqs();
#endif
/*
* Cover the whole vector space, no vector can...
分类:
系统相关 时间:
2015-03-13 09:24:36
阅读次数:
291
Building a Space StationTime Limit: 1000msMemory Limit: 30000KBThis problem will be judged on PKU. Original ID: 2031 64-bit integer IO fo...
分类:
其他好文 时间:
2015-03-12 22:16:42
阅读次数:
138
现象:用sourceinsight修改的文件无法保存,提示 No enough space to save "XXX", xxx more bytes are required.服务器Centos5.5,已经开了samba服务; 但在windows资源管理器里可以直接访问 并读写。刚开始怀疑smb问...
分类:
其他好文 时间:
2015-03-12 20:42:15
阅读次数:
162
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2015-03-12 18:42:30
阅读次数:
120
【51CTO专稿】本文将详细介绍Android中的防缓冲区溢出技术的来龙去脉。
1、什么是ASLR?
ASLR(Address space layout randomization)是一种针对缓冲区溢出的安全保护技术,通过对堆、栈、共享库映射等线性区布局的随机化,通过增加攻击者预测目的地址的难度,防止攻击者直接定位攻击代码位置,达到阻止溢出攻击的目的。通常情况下,黑客会利用某个特定函数或库驻存...
分类:
移动开发 时间:
2015-03-12 17:24:57
阅读次数:
254