问题描述:
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
基本思路:
大数乘法,此题如果用java的BigInteg...
分类:
其他好文 时间:
2014-12-07 12:38:10
阅读次数:
136
android之网格布局和线性布局实现注册页面(注意:1、再用weight的时候,各个组件要设置宽度为0dp,高度也要设置,2、即使没有设置weight,再用linear布局时,比如view和button都要设置宽度高度。3、如果出现运行错误,可以先检查哪个组件没设置高度):values/strings.xml<..
分类:
移动开发 时间:
2014-12-07 06:52:54
阅读次数:
357
题目链接:http://poj.org/problem?id=2406思路:1.理解Kmp算法的next数组的意义;2.对于字符A[i],i-next[i]等价于在字符串中存在一个长度为i-next[i]的重复子串;3.当 i % (i - next[i]) == 0 等价于字符串由 (i/(i-n...
分类:
其他好文 时间:
2014-12-06 15:21:23
阅读次数:
173
Power Strings
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 33636
Accepted: 13973
Description
Given two strings a and b we define a*b to be their concatena...
分类:
其他好文 时间:
2014-12-05 22:47:36
阅读次数:
181
博客分类: iOS
ios
第一步:在Supporting Files 中新建一个文件Localizable.strings .方法:在Supporting Files 上右键选择New File 选择Resource ----》Strings File 。
第二步:现在有InfoPlist.strings 和Localizable.strings 两个文件。这两个文件前一个用于改变项目在...
分类:
移动开发 时间:
2014-12-04 17:55:36
阅读次数:
212
9.2Writeamethodtosortanarrayofstringssothatalltheanagramsarenexttoeachother.Useamap,thekeyissortedstring,valueislistofanagramsusingcharsinthekey.List<String>sortByAnagrams(List<String>strings)
{
Map<String,List<String>>map;
for(Stri..
分类:
其他好文 时间:
2014-12-04 10:22:12
阅读次数:
128
Power Strings
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 33623
Accepted: 13966
Description
Given two strings a and b we define a*b to be their concate...
分类:
其他好文 时间:
2014-12-04 01:02:06
阅读次数:
208
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-12-03 23:15:35
阅读次数:
248
Write a function to find the longest common prefix string amongst an array of strings.Hide TagsString 这是一道很简单的题目,判断输入的多个字符串的公有前序,简单的逻辑遍历查找就好。算法流程:判断输....
分类:
其他好文 时间:
2014-12-03 23:07:15
阅读次数:
99
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:
其他好文 时间:
2014-12-03 13:53:01
阅读次数:
174