[LeetCode]Reverse Bits
    
            
摘要:题目:Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Have you thought about this? Here are so
        
阅读全文
 
        
            
    [LeetCode]Divide Two Integers
    
            
摘要:题目:Divide Two Integers 不用除法运算符,计算两个整数相除。 注意: 1、除数为零, 2.最小负数转为正数时溢出的情况。(-2147483648/-1 = 2147483648 > 2147483647) 3.正负号 但是上面的做法效率太低,无法通过。 考虑用左移的方法,速度更快
        
阅读全文