1. 4.0.0 com.yeetrack yinyueyun-download 0.0.1-SNAPSHOT jar yinyueyun-download http://maven.apache.org UTF-8 org.apache...
分类:
其他好文 时间:
2014-07-18 18:29:36
阅读次数:
245
对于触摸屏,其原生的消息无非按下、抬起、移动这几种,我们只需要简单重载onTouch或者设置触摸侦听器setOnTouchListener即可进行处理。不过,为了提高我们的APP的用户体验,有时候我们需要识别用户的手势,Android给我们提供的手势识别工具GestureDetector就可以帮上大...
分类:
移动开发 时间:
2014-07-18 18:29:03
阅读次数:
207
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...
分类:
其他好文 时间:
2014-07-18 18:28:44
阅读次数:
231
Platform VersionAPI LevelVERSION_CODENotesAndroid 4.419KITKATPlatform HighlightsAndroid 4.318JELLY_BEAN_MR2Platform HighlightsAndroid 4.2, 4.2.217JELL...
分类:
移动开发 时间:
2014-07-18 18:28:29
阅读次数:
460
螺旋矩阵是指一个呈螺旋状的矩阵,它的数字由第一行开始到右边不断变大,向下变大,向左变大,向上变大,如此循环。 1 import java.io.*; 2 public class demo1 3 { 4 public static void main(String[] args) 5 ...
分类:
其他好文 时间:
2014-07-18 18:27:55
阅读次数:
339
class Solution {public: ListNode *removeNthFromEnd(ListNode *head, int n) { if (head == NULL) return NULL; ListNode* pre = NULL; ...
分类:
其他好文 时间:
2014-07-18 18:24:55
阅读次数:
209
int iValue = new Integer(strValue).intValue();String str = intObj.toString();int number = Integer.parseInt(str);public static Object read(String value...
分类:
编程语言 时间:
2014-07-18 18:24:40
阅读次数:
300
/*本题的思路比较简单,就是将递推公式写出来,然后表达成为一个矩阵的形式最后通过计算就可以得到一个符合题目要求的矩阵,然后就是将矩阵上面所有的对角线元素相加得到的结果即为所求的目标*/#include #include using namespace std; const int maxn = 15...
分类:
其他好文 时间:
2014-07-18 18:24:07
阅读次数:
295
题目:应用递归,将输入的二进制数转换为十进制。#include #include void binary_to_decimal(char *s, long dec){ if( *s == '\0' ) printf("Decimal: %ld\n",dec); else ...
分类:
其他好文 时间:
2014-07-18 18:23:50
阅读次数:
217
/// /// 双向链表节点类 /// /// 节点中的存放的数据类型 public class Node where T:IComparable { /// /// 当前节点的数据 /// T data; /// /// 节点中存放的数据 /// pu...
分类:
其他好文 时间:
2014-07-18 18:22:59
阅读次数:
272