MotionEvent.ACTION_DOWN:在第一个点被按下时触发MotionEvent.ACTION_UP:当屏幕上唯一的点被放开时触发MotionEvent.ACTION_POINTER_DOWN:当屏幕上已经有一个点被按住,此时再按下其他点时触发。MotionEvent.ACTION_POINTER_UP:当屏幕上有多个点被按住,松开其中一个点时触发(即非最后一个点被放开时)。Motio...
分类:
其他好文 时间:
2015-04-22 18:15:40
阅读次数:
134
1. Don't bring up your co-worker's salary.
不要拿同事的薪水来说事。
First of all, you may not have all your facts right, and bringing up your colleague's salary will put your manager into an uncomfortable position. What you should do is compare what you're making to t...
分类:
其他好文 时间:
2015-04-22 13:54:36
阅读次数:
193
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?题目大意:给定一个链表,判断是否有环?解题思路:解法一:快慢指针,如果有环,那么快慢...
分类:
其他好文 时间:
2015-04-22 11:29:06
阅读次数:
116
Dima, Inna and Seryozha have gathered in a room. That’s right, someone’s got to go. To cheer Seryozha up and inspire him to have a walk, Inna decided to cook something.Dima and Seryozha have n fruits i...
分类:
其他好文 时间:
2015-04-21 22:52:16
阅读次数:
137
MAX运行大批量循环的时候容易出现内存爆掉的情况,所以需要注意在循环里加入释放内容的函数. fn ReleaseMemory = ---------释放内存( GC() freesceneBitmaps()--释放位图碎片 --Frees up all the memory used by the ...
分类:
其他好文 时间:
2015-04-21 22:15:50
阅读次数:
136
Description
Michael The Kid receives an interesting game set from his grandparent as his birthday gift. Inside the game set box, there are n tiling blocks and each block has a form as follows:
...
分类:
其他好文 时间:
2015-04-21 18:10:05
阅读次数:
227
题目来自于leetcode
https://leetcode.com/problems/path-sum/
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the ...
分类:
其他好文 时间:
2015-04-21 18:05:43
阅读次数:
156
void schedule(void)
105 {
106 int i,next,c;
107 struct task_struct ** p; // 任务结构指针的指针。
108
109 /* check alarm, wake up any interruptible tasks that have got a signal */
/* 检测alarm(进程的报警定时值),唤醒任何...
分类:
系统相关 时间:
2015-04-21 13:06:48
阅读次数:
223
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-04-21 12:45:40
阅读次数:
168
https://leetcode.com/problems/two-sum/ Given an array of integers, find two numbers such that they add up to a specific target number. The function tw...
分类:
其他好文 时间:
2015-04-20 18:20:27
阅读次数:
95