Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
这里的k可能是比链表长度要大的数字,因此实际旋转的位置就是k%le...
                            
                            
                                分类:
其他好文   时间:
2014-08-20 22:46:23   
                                阅读次数:
253
                             
                         
                    
                        
                            
                            
                                The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
                            
                            
                                分类:
其他好文   时间:
2014-08-20 22:21:12   
                                阅读次数:
210
                             
                         
                    
                        
                            
                            
                                Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
                            
                            
                                分类:
其他好文   时间:
2014-08-19 23:42:35   
                                阅读次数:
227
                             
                         
                    
                        
                            
                            
                                Given a list, rotate the list to the right by k places, where k is non-negative.For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3...
                            
                            
                                分类:
其他好文   时间:
2014-08-18 21:57:12   
                                阅读次数:
244
                             
                         
                    
                        
                            
                            
                                缩写原意: Overflow of = OV NV [No Overflow] Direction df = DN (decrement) UP (increment) Interrupt if = EI (enabled) DI (disabled) Sign sf = NG (negative)...
                            
                            
                                分类:
编程语言   时间:
2014-08-18 18:06:32   
                                阅读次数:
417
                             
                         
                    
                        
                            
                            
                                Problem Description
Given a base b and two non-negative base b integers p and m, compute p mod m and print the result as a base b integer. p mod m is defined as the smallest non-negative integer k ...
                            
                            
                                分类:
其他好文   时间:
2014-08-16 21:11:11   
                                阅读次数:
169
                             
                         
                    
                        
                            
                            
                                The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of ...
                            
                            
                                分类:
其他好文   时间:
2014-08-16 12:37:20   
                                阅读次数:
219
                             
                         
                    
                        
                            
                            
                                Minimum Path SumGiven amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along ...
                            
                            
                                分类:
其他好文   时间:
2014-08-16 02:13:49   
                                阅读次数:
189
                             
                         
                    
                        
                            
                            
                                Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, suc...
                            
                            
                                分类:
其他好文   时间:
2014-08-15 10:47:38   
                                阅读次数:
255
                             
                         
                    
                        
                            
                            
                                DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located...
                            
                            
                                分类:
其他好文   时间:
2014-08-14 23:39:56   
                                阅读次数:
234