当用户触摸屏幕的时候,会产生许多手势,例如down,up,scroll,filing等等。一般情况下,我们知道View类有个View.OnTouchListener内部接口,通过重写他的onTouch(Viewv,MotionEventevent)方法,我们可以处理一些touch事件,但是这个方法太...
分类:
其他好文 时间:
2014-08-20 16:08:12
阅读次数:
289
Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ret...
分类:
其他好文 时间:
2014-08-20 13:53:12
阅读次数:
168
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:
其他好文 时间:
2014-08-20 13:47:32
阅读次数:
224
2014-08-20 10:46:22,356 INFO [coreZkRegister-1-thread-1] [org.apache.solr.cloud.ShardLeaderElectionContext] - Was waiting for replicas to come up, but they are taking too long - assuming they won't c...
分类:
其他好文 时间:
2014-08-20 12:36:22
阅读次数:
338
DescriptionThe kids in my son's kindergarten made Christmas cookies with their teacher, and piled them up in columns. They then arranged the columns s...
分类:
其他好文 时间:
2014-08-20 12:15:22
阅读次数:
158
DescriptionMy kid's kindergarten class is putting up a Christmas play. (I hope he gets the lead role.) The kids are all excited, but the teacher has a...
分类:
其他好文 时间:
2014-08-20 11:47:56
阅读次数:
200
呵呵,这个题不能直接删除已知的结点,因为是单链表,不知道前驱,只知道
后继结点,直接删除会使链表断开。不过我们可以删除已知结点的后继结点,
把后继结点的值赋值给已知结点。
#include
struct Node
{
int data;
Node* next;
};
bool removeNode(Node* vNode)
{
if (vNode == NULL || vNo...
分类:
其他好文 时间:
2014-08-20 01:25:45
阅读次数:
174
今天突然间update 一些软件后,就遇到了无法启动桌面,就是输入正确的用户名和密码后还是无法进入系统。重启后,一直停留在waiting for network configuration, 然后显示waiting up to 60 more seconds for networking confi...
分类:
其他好文 时间:
2014-08-20 01:22:55
阅读次数:
477
今晚再刷一题,题目如下:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices o...
分类:
其他好文 时间:
2014-08-20 01:20:15
阅读次数:
197
GO/****** Object: StoredProcedure [dbo].[UP_Job_UpdatePromotionBeginInfo] Script Date: 08/19/2014 19:02:11 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTI...
分类:
其他好文 时间:
2014-08-19 20:43:25
阅读次数:
255