题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".要求:1)首尾有空格的时候,反转后的string要将空...
分类:
其他好文 时间:
2014-07-16 19:29:54
阅读次数:
234
描述: Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2...
分类:
其他好文 时间:
2014-07-16 19:29:31
阅读次数:
166
题目Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which r...
分类:
其他好文 时间:
2014-07-15 23:21:33
阅读次数:
218
HHyper Prefix SetsPrefix goodness of a set string is length of longest common prefix*number of strings in the set. For example the prefix goodness of ...
分类:
其他好文 时间:
2014-07-15 08:51:08
阅读次数:
261
package com.example.dailphone;import android.support.v7.app.ActionBarActivity;import android.support.v7.app.ActionBar;import android.support.v4.app.Fr...
分类:
移动开发 时间:
2014-07-14 15:20:09
阅读次数:
195
布局: activity代码:package com.example.msgSend;import java.util.List;import android.os.Bundle;import android.support.v7.app.Actio...
分类:
移动开发 时间:
2014-07-14 14:46:32
阅读次数:
279
目前的Eclipse都集成了ant,但是如何在Eclipse下使用ant呢?1.新建JavaProject-新建Java文件HelloWorld.javaHelloWorld.java:package example;public class HelloWorld { public stati...
分类:
系统相关 时间:
2014-07-13 20:24:57
阅读次数:
359
Python provides methods that operate on lists. For example, append adds a new element to the end of a list, extend takes a list as an argument and app...
分类:
其他好文 时间:
2014-07-13 19:16:32
阅读次数:
236
Android仿IOS回弹效果 ScrollView回弹 总结
应项目中的需求 需要仿IOS 下拉回弹的效果 , 我在网上搜了很多 大多数都是拿scrollview 改吧改吧
试了一些 发现总有点小问题
下面的代码是我对大家发布的做了点小修改 觉得没太大问题
package com.example.myscrollview;
import android.content...
分类:
移动开发 时间:
2014-07-13 18:49:40
阅读次数:
252
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
/**
* Definition for bi...
分类:
其他好文 时间:
2014-07-13 18:46:25
阅读次数:
249