题目:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return
it a...
分类:
其他好文 时间:
2015-06-06 15:01:01
阅读次数:
139
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2015-06-06 13:18:38
阅读次数:
123
Resist the Temptation of the Singleton PatternSam SaaristeTHE SiNGLETON PATTERN SOLVES MANY OF YOUR PROBLEMS. You know that you only need a single instance. You have a guarantee that this instance is i...
分类:
其他好文 时间:
2015-06-06 09:09:16
阅读次数:
143
为了加强鼠标响应事件,Android提供了GestureDetector手势识别类。通过GestureDetector.OnGestureListener来获取当前被触发的操作手势(Single Tap Up、Show Press、Long Press、Scroll、Down、Fling),具体包括...
分类:
移动开发 时间:
2015-06-05 20:56:56
阅读次数:
179
DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an...
分类:
其他好文 时间:
2015-06-05 19:08:09
阅读次数:
112
开始的开始,只听说权限的登录做出来但是退出一直被划为难点,只感觉退出好难做呀!接着后来就进入了CAS小分队并成为小头头。但真心的说,那个时候对CAS真是一点都不懂呀,就来做好的加filter也一直有问题。好吧,我承认,那个时候真的好傻。
现在,终于敢站出来说一句我研究过CAS了,给自己这几天一个总结吧!
首先,它是什么?
SSO英文全称Single...
分类:
其他好文 时间:
2015-06-05 10:11:26
阅读次数:
121
alter database 置疑数据库 set emergencygoalter database 置疑数据库 set single_user with rollback immediategouse mastergoalter database 置疑数据库 Rebuild Log on(name...
分类:
数据库 时间:
2015-06-05 00:06:39
阅读次数:
196
Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that d...
分类:
其他好文 时间:
2015-06-04 19:18:39
阅读次数:
114
#include
#include
int singleNumber(int* nums, int numsSize)
{
int count[32]={0};
int i,j,number=0;
for(i=0;i<numsSize;i++)
{
for(j=0;j<32;j++)
count[j]+=((nums[i]&(1<<j))!=0);
}
for(i=0;i...
分类:
其他好文 时间:
2015-06-04 15:46:15
阅读次数:
86
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cov...
分类:
其他好文 时间:
2015-06-03 23:28:01
阅读次数:
162