Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from ...
分类:
其他好文 时间:
2014-11-12 23:06:03
阅读次数:
255
Given a string S, find the longest palindromic substring in S.Note:This is Part II of the article:Longest Palindromic Substring. Here, we describe an ...
分类:
其他好文 时间:
2014-11-12 21:05:22
阅读次数:
345
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguo...
分类:
其他好文 时间:
2014-11-12 19:45:35
阅读次数:
201
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
他的意思就是回文构词法,即单词里的字母的种类和数目没有改变,只是改变了字母的排列顺序。
input= ["abc", "...
分类:
其他好文 时间:
2014-11-12 16:42:05
阅读次数:
200
目的是实现点击屏幕上方的按钮然后让ScrollView自动定位到按钮对应的栏目位置
笔记详细及源码:
http://note.youdao.com/share/?id=3e016147d74f57b56887dffc486a39af&type=note...
分类:
移动开发 时间:
2014-11-12 16:37:43
阅读次数:
166
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-11-12 16:15:21
阅读次数:
118
问题描述:
Given a collection of integers that might contain duplicates,
S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not conta...
分类:
其他好文 时间:
2014-11-12 13:52:10
阅读次数:
184
/*
?*?@brief?hdu?5059
?*?@file?5059.c
?*?@author?xiyan
?*?@CreatedTime?2014/11/12
?*?@LastChanged?2014/11/12
?*?@note
?*??????type:?string?convert
?*
?*
?*/
#include...
分类:
其他好文 时间:
2014-11-12 12:05:59
阅读次数:
141
问题描述:
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For ex...
分类:
其他好文 时间:
2014-11-12 11:46:52
阅读次数:
169
// Upgrade NOTE: replaced 'PositionFog()' with multiply of UNITY_MATRIX_MVP by position// Upgrade NOTE: replaced 'V2F_POS_FOG' with 'float4 pos : SV_P...
分类:
其他好文 时间:
2014-11-11 20:45:16
阅读次数:
494