一,支持多语种
前提要求是不要进行硬编码,应该将字符串提出来放入strings.xml中。
然后需要对多语种支持时,通过res/values文件夹的名称来区分语种,
比如:
简体中文是values-zh-rCN
繁体中文是values-zh-rTW
英文是values-en
参考:
Android应用支持多设备 
http://blog...
                            
                            
                                分类:
移动开发   时间:
2015-03-10 12:18:28   
                                阅读次数:
185
                             
                         
                    
                        
                            
                            
                                publicstaticStringformatDuring(longmss){longdays=mss/(1000*60*60*24);longleft=mss%(1000*60*60*24);longhours=left/(1000*60*60);left=left%(1000*60*60);longminutes=left/(1000*60);left=left%(1000*60);longseconds=left/1000;left=left%1000;Strings=days>0?(days+..
                            
                            
                                分类:
其他好文   时间:
2015-03-09 19:22:50   
                                阅读次数:
380
                             
                         
                    
                        
                            
                            
                                很好的状压dp题目
d[mask]=x   在询问了mask位的情况下,有x状态的串还是不能区分 /// 预处理不好会TLE
dp[x]  从一次也没有问,到问到状态x时的概率
可以看 http://blog.csdn.net/houserabbit/article/details/40658791 大神的题解
C. Game with Strings
...
                            
                            
                                分类:
其他好文   时间:
2015-03-09 12:51:53   
                                阅读次数:
165
                             
                         
                    
                        
                            
                            
                                Given two strings, find the longest common substring.Return the length of it.NoteThe characters in substring should occur continiously in original str...
                            
                            
                                分类:
其他好文   时间:
2015-03-09 12:17:48   
                                阅读次数:
105
                             
                         
                    
                        
                            
                            
                                Given two strings, find the longest comment subsequence (LCS).Your code should return the length of LCS.ExampleFor "ABCD" and "EDCA", the LCS is "A" (...
                            
                            
                                分类:
其他好文   时间:
2015-03-09 09:20:00   
                                阅读次数:
141
                             
                         
                    
                        
                            
                            
                                Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
题意:给你string的数组,让你求出字符和个数都相同的字符串。
思路:对于每个字符串都排序后,用map标记是否已经加入到答案中。
class Solutio...
                            
                            
                                分类:
其他好文   时间:
2015-03-08 18:51:47   
                                阅读次数:
120
                             
                         
                    
                        
                            
                            
                                Substring
Given
 a set of pattern strings, and a text, you have to find, if any of the pattern is a substring of the text. If any of the pattern string can be found in text, then print “yes”, othe...
                            
                            
                                分类:
其他好文   时间:
2015-03-08 15:45:57   
                                阅读次数:
225
                             
                         
                    
                        
                            
                            
                                Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".[Solution] 1 string addBinary(string a, string ...
                            
                            
                                分类:
其他好文   时间:
2015-03-07 18:36:26   
                                阅读次数:
107
                             
                         
                    
                        
                            
                            
                                Power Strings
Time Limit: 3000MS
 
Memory Limit: 65536K
Total Submissions: 34716
 
Accepted: 14367
Description
Given two strings a and b we define a*b to be their conca...
                            
                            
                                分类:
其他好文   时间:
2015-03-07 15:42:22   
                                阅读次数:
117
                             
                         
                    
                        
                            
                            
                                Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange strings are a...
                            
                            
                                分类:
其他好文   时间:
2015-03-07 14:10:19   
                                阅读次数:
103