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-06-28 23:59:00   
                                阅读次数:
383
                             
                         
                    
                        
                            
                            
                                Do you often write a check at the grocery store, mail tax returns, change service providers for your mobile phone, or apply for a credit card? If you ...
                            
                            
                                分类:
其他好文   时间:
2014-06-28 23:48:54   
                                阅读次数:
495
                             
                         
                    
                        
                            
                            
                                Society has always been competitive, but nowadays life is perhaps more competitive than in any previous era. Can you imagine the level of competition ...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 13:45:03   
                                阅读次数:
288
                             
                         
                    
                        
                            
                            
                                题目
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only const...
                            
                            
                                分类:
其他好文   时间:
2014-06-18 11:53:39   
                                阅读次数:
138
                             
                         
                    
                        
                            
                            
                                第一行输出该词所在的行数序号(多个的话,按照从小到大排序输出,中间空格隔开,序号从一开始记),如果没有出现,输出 -1
第二行输出频次排名R的单词出现的次数。
测试数据中的词频的分布如下,可见,排名第3的词,出现的次数为2
I,4
Beijing,2
in,2
love,2
.,1
Bejing,1
a,1
also,1
am,1
and,1
beautiful,1
i...
                            
                            
                                分类:
其他好文   时间:
2014-06-18 06:52:00   
                                阅读次数:
224
                             
                         
                    
                        
                            
                            
                                Problem Description
You are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a number x to make
 as small as possible!
...
                            
                            
                                分类:
其他好文   时间:
2014-06-18 00:58:54   
                                阅读次数:
276
                             
                         
                    
                        
                            
                            
                                Structural Things
An artifact is a physical
 and replaceable part of a system that contains physical information (“bits”).
 In a system, you’ll encounter different kinds of deployment artifacts...
                            
                            
                                分类:
其他好文   时间:
2014-06-17 23:08:40   
                                阅读次数:
258
                             
                         
                    
                        
                            
                            
                                K-th Number
Time Limit: 20000MS
 
Memory Limit: 65536K
Total Submissions: 36045
 
Accepted: 11522
Case Time Limit: 2000MS
Description
You are working for Macrohard com...
                            
                            
                                分类:
其他好文   时间:
2014-06-17 22:17:07   
                                阅读次数:
410
                             
                         
                    
                        
                            
                            
                                在Android开发中为了inflate一个布局文件,大体有2种方式,如下所示:
    // 1. get a instance of LayoutInflater, then do whatever you want
    LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOU...
                            
                            
                                分类:
移动开发   时间:
2014-06-17 16:42:35   
                                阅读次数:
360
                             
                         
                    
                        
                            
                            
                                题目
Determine whether an integer is a palindrome. Do this without extra space.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of converting the integer to ...
                            
                            
                                分类:
其他好文   时间:
2014-06-17 16:12:39   
                                阅读次数:
226