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 given sum.Fo...
分类:
其他好文 时间:
2015-05-22 00:04:22
阅读次数:
144
Android中的事件分为按键事件和触摸事件。
Touch事件是由一个ACTION_DOWN,n个ACTION_MOVE,一个ACTION_UP组成onClick,onLongClick,onScroll等事件,Android 中与 Touch 事件相关的方法有:
dispatchTouchEvent(MotionEvent ev) 事件分发
onInterceptTouchEvent(...
分类:
移动开发 时间:
2015-05-21 10:50:21
阅读次数:
161
http://acm.hdu.edu.cn/showproblem.php?pid=1258关键点就是一次递归里面一样的数字只能选一次。 1 #include 2 #include 3 4 int n,t; 5 int b[15],c[15]; 6 bool flag; 7 void dfs(...
分类:
其他好文 时间:
2015-05-21 10:20:53
阅读次数:
151
Time Limit:2000MS Memory Limit:65535KType: ProgramLanguage: Not LimitedDescriptionLys plays Love Live game now. You can level up via playing songs and...
分类:
其他好文 时间:
2015-05-20 23:40:51
阅读次数:
181
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?分析:...
分类:
其他好文 时间:
2015-05-20 23:35:35
阅读次数:
176
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 numbers such that they add up to the target, where i...
分类:
其他好文 时间:
2015-05-20 22:22:28
阅读次数:
127
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?分析:用map记录是否出现过。用时:60ms 1 /** 2 * Definiti....
分类:
其他好文 时间:
2015-05-20 22:07:14
阅读次数:
145
CREATE TABLE T_Person3(Id int NOT NULL,Name nvarchar(50),Age int NULL)
DROP TABLE T_Person3
INSERT INTO Person_1(Number,Name,Age) VALUES(4,'xxxxxxx',20)
SELECT newid()
UPDATE Person_1 set Age=30
UP...
分类:
数据库 时间:
2015-05-20 18:28:02
阅读次数:
167
leetcode 1 – Two Sum
最近打算开始练习下leetcode上面的题,原因有2点
- 1.保证自己每天有敲一定的代码练习,避免手生。
- 2.锻炼自己的思维能力吧,思维还是很重要的。 题目:
Given an array of integers, find two numbers such that they add up to a specific t...
分类:
其他好文 时间:
2015-05-20 16:25:06
阅读次数:
87
如图,dock是一个空gameObject,其下包含mouth_dn,mouth_up (应该叫lip_dn,lip_up更合适,这不是重点,先不改了),head,eye_left,eye_right等组成部分。选中dock,然后打开animation窗口(菜单->Window->Animation...
分类:
编程语言 时间:
2015-05-20 12:45:01
阅读次数:
167