题目:
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 targ...
分类:
其他好文 时间:
2015-04-03 21:08:43
阅读次数:
158
AsyncTask是android自带的一个异步处理线程它带了很多参数都很方便使用但是有一些注意事项1:官网说明:AsyncTasks should ideally be used for short operations (a few seconds at the most.) If you ne...
分类:
其他好文 时间:
2015-04-03 20:49:05
阅读次数:
139
Factorial Trailing Zeroes问题:Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.思...
分类:
其他好文 时间:
2015-04-02 18:26:49
阅读次数:
117
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cove...
分类:
其他好文 时间:
2015-04-02 15:13:28
阅读次数:
111
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-02 13:12:14
阅读次数:
126
题目:Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space...
分类:
其他好文 时间:
2015-04-02 10:31:49
阅读次数:
114
Merge Two Sorted Lists
Merge
two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
解题思路:
这道题是我做的leetcode最容易的题目了...
分类:
其他好文 时间:
2015-04-01 23:47:10
阅读次数:
173
POJ 2236
问在计算机坏了,修复若干,问检测两台是否能连通
#include
#include
#include
using namespace std;
const int N = 1005;
struct Point
{
int x,y;
};
Point p[N];
int repaired[N];
int pre[N],rank[N];
...
分类:
其他好文 时间:
2015-04-01 20:01:00
阅读次数:
145
转:http://www.blueowls.net/android-strictmode%E4%BB%8B%E7%BB%8D//** * enables "strict mode" for testing - should NEVER be used in release builds ...
分类:
移动开发 时间:
2015-04-01 19:17:38
阅读次数:
205
preface:leetcode练习
question:1.Two Sum
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 numb...
分类:
编程语言 时间:
2015-04-01 17:42:22
阅读次数:
170