摘要:        
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo    阅读全文
posted @ 2017-10-02 22:53
immjc
阅读(107)
评论(0)
推荐(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 thi    阅读全文
posted @ 2017-10-02 22:16
immjc
阅读(162)
评论(0)
推荐(0)
        
            
        
        
摘要:        
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron    阅读全文
posted @ 2017-10-02 12:04
immjc
阅读(155)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 计算n!结果的末尾有几个零。 题目要求复杂度为对    阅读全文
posted @ 2017-10-02 11:33
immjc
阅读(90)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front    阅读全文
posted @ 2017-10-02 11:17
immjc
阅读(111)
评论(0)
推荐(0)
        
            
        
        
摘要:        
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly kcoins. Given n, find the total number     阅读全文
posted @ 2017-10-02 10:44
immjc
阅读(135)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号