Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a pla...
分类:
其他好文 时间:
2014-07-25 23:52:10
阅读次数:
202
public GameObject _background;public UIAtlas atlas;private Dictionary _allCardSprite;for (int i=0; i(_parent); _sprite.atlas = atlas; ...
分类:
其他好文 时间:
2014-07-25 16:44:51
阅读次数:
293
很多时候我们使用hibernate的session时,都是让session在 某一运行环境中保持其唯一。例如在同一线程内用同一个session,在同一方法内用同一session,这样我们就可以用session里面缓存好的数 据。但,我想说的不是缓存,且听我一一道来。 最近试用spring3.0.2....
分类:
数据库 时间:
2014-07-25 16:32:41
阅读次数:
248
Description
There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum element ...
分类:
其他好文 时间:
2014-07-25 11:06:41
阅读次数:
242
在launcher.java中在createShortcut方法中 屏蔽所有应用按钮
改动之前
View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) {
BubbleTextView favorite = (BubbleTextView) mInflater.inflate(
layoutRe...
分类:
移动开发 时间:
2014-07-25 11:02:28
阅读次数:
290
Comparison-based sorting takes O(nlgn), so hashset is a good idea. After keeping records of all numbers in the hashset, you start checking each number...
分类:
其他好文 时间:
2014-07-25 03:40:54
阅读次数:
305
随机挑选一题试试手气。 问题描述: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, ...
分类:
其他好文 时间:
2014-07-24 21:55:32
阅读次数:
232
Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must clos...
分类:
其他好文 时间:
2014-07-24 21:42:52
阅读次数:
187
解题报告
求最长路。
用SPFA求最长路,初始化图为零,dis数组也为零
#include
#include
#include
#include
#include
#define inf 99999999
#define N 110
using namespace std;
int mmap[N][N],dis[N],vis[N],n;
void spfa(int s)
{
...
分类:
其他好文 时间:
2014-07-24 17:43:16
阅读次数:
280
本文将告诉你如何让你的应用程序支持各种不同屏幕大小,主要通过以下几种办法:让你的布局能充分的自适应屏幕根据屏幕的配置来加载合适的UI布局确保正确的布局应用在正确的设备屏幕上提供可以根据屏幕大小自动伸缩的图片使用 "wrap_content" 和 "match_parent"为了确保你的布局能够自适应...
分类:
移动开发 时间:
2014-07-24 17:25:42
阅读次数:
359