题意:求字符串中循环节出现的次数 KMP!!! #include<cstdio> #include<iostream> #include<cstring> #define M 1000010 using namespace std; int fail[M],a[M],m; char ch[M]; v ...
分类:
其他好文 时间:
2016-06-28 22:08:58
阅读次数:
213
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-neg ...
分类:
编程语言 时间:
2016-06-28 18:14:42
阅读次数:
169
想做出一款出色的App,仅仅编写Java代码还不够。在代码中调用资源(Resources ),如位图(bitmaps)、布局资源( layout definitions)、UI中需要展示的字符串资源(user interface strings)、动画资源(animation instructions)等,可以让您的App更加出色。本文将介绍Android中各种类型的资源、以及获取资源的方式。...
分类:
移动开发 时间:
2016-06-28 11:05:18
阅读次数:
327
Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: 这题其实是算是Valid Anagram的一个fol ...
分类:
其他好文 时间:
2016-06-27 23:01:34
阅读次数:
261
Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", t = ...
分类:
其他好文 时间:
2016-06-27 21:48:22
阅读次数:
153
在学习应用一个框架之前,应该了解一下这个框架的整体结构或是相应的API函数。这篇文章还不错:http://blog.sina.com.cn/s/blog_68f262210102vzf9.html,就拷贝过来。 常用的API函数 获取信息类API (1)获取默认系统语言对应的Strings.xml文 ...
分类:
移动开发 时间:
2016-06-27 11:55:43
阅读次数:
324
按照swift教程的内容,把自己觉得重要的记录了下来。——新波 2.1字符串字面量String Literals 字符串字面量是由双引号 ( "" ) 包裹着的具有固定顺序的文本字符集。 let someString = "Some string literal value" 2.2初始化空字符串 ...
分类:
编程语言 时间:
2016-06-27 10:34:45
阅读次数:
271
#include <cstdio> #include <iostream> #include <ctime> #include <vector> #include <cmath> #include <map> #include <stack> #include <queue> #include <a ...
分类:
其他好文 时间:
2016-06-25 09:34:29
阅读次数:
132
由于公司的项目是投放 google play store , 所以要做国际化。国际化遇到的两个大问题 字符串国际化 布局样式国际化 一:字符串国际化 解决这个问题很简单,在res目录下放不同国家的value文件夹,在相应文件夹里的 strings.xml 文件放对应的语言即可。比如 二:布局样式国际 ...
分类:
移动开发 时间:
2016-06-24 20:27:35
阅读次数:
202