摘要:        
Given an array A[] and a number x, check for pair in A[] with sum as xhttp://www.geeksforgeeks.org/write-a-c-program-that-given-a-set-a-of-n-numbers-and-another-number-x-determines-whether-or-not-there-exist-two-elements-in-s-whose-sum-is-exactly-x/ public int[] twoSum(int[] numbers, int target) ...    阅读全文
        posted @ 2013-05-20 17:22
Alan Yang
阅读(223)
评论(1)
推荐(0)
            
        
        
摘要:        
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 string, note the restriction of using extra space.You could also try reversing an integer. However, if you have solved    阅读全文
        posted @ 2013-05-20 14:45
Alan Yang
阅读(172)
评论(0)
推荐(0)
 
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号