#include
#include
#include
using namespace std;
int main()
{
int chArray[26] ;
memset(chArray, 0, 26*sizeof(int));
int N =0;
string s;
cin>> N;
while (N--)
{
memset(chArray, 0, 26*sizeof(i...
分类:
其他好文 时间:
2015-01-03 21:06:15
阅读次数:
241
#include
#include
#include
using namespace std;
int main()
{
string s;
cin>>s;
sort(s.begin(), s.end());
cout
return 0;
}...
分类:
其他好文 时间:
2015-01-03 21:05:36
阅读次数:
146
适配器包括ArrayAdapter,SimpleAdapter和SimpleCursorAdapter。以及自定义适配器。ArrayAdapter数据来源:String[]和List用法:1publicclassArrayAdapterActivityextendsListActivity{priv...
分类:
其他好文 时间:
2015-01-03 21:02:46
阅读次数:
215
Array 1 val greetStrings = new Array[String](3) 2 greetStrings(0) = "Hello" 3 greetStrings(1) = "," 4 greetStrings(2) = "world!\n" 5 6 for(i <- 0 to ....
分类:
其他好文 时间:
2015-01-03 20:57:24
阅读次数:
97
public Image Base64ToImage(string base64String) { // Convert Base64 String to byte[] byte[] imageBytes = Convert.Fro...
分类:
其他好文 时间:
2015-01-03 19:47:14
阅读次数:
212
QUESTIONRelated to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For examp...
分类:
其他好文 时间:
2015-01-03 18:34:42
阅读次数:
149
接上一篇redis ruby客户端学习( 二)对于redis的五种数据类型:字符串(String),哈希(Map),列表(list),集合(sets)和有序集合(sorted sets),上一篇介绍了哈希和列表。一,集合mset。添加一个或者多个元素到集合(set)里require "redis"r...
分类:
其他好文 时间:
2015-01-03 18:32:27
阅读次数:
165
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:
其他好文 时间:
2015-01-03 17:22:56
阅读次数:
157
1. java不可变性初探我们先看下面一个例子:代码如下: 1 import java.math.BigInteger; 2 public class BigProblem { 3 public static void main(String[ ] args)...
分类:
编程语言 时间:
2015-01-03 17:17:01
阅读次数:
257
【LeetCode】Excel sheet column title输入非负整数n,输出以下格式:1 -> A2 -> B......26 -> Z27 -> AA28 -> AB[分析]实质是将十进制转换为26进制。应该想到用string的+运算,可以连接字符。利用函数reverse(result...
分类:
其他好文 时间:
2015-01-03 17:12:53
阅读次数:
91