1. 程式人生 > >leetcode easy problem set

leetcode easy problem set

 

 *勿以浮沙築高臺*

 

持續更新........

 

1. Two Sum [4ms]
2. Reverse Integer [12ms]

    題意:將一個32bit signed integer反轉輸出,如果反轉之後超出32位補碼範圍 [-2^31,2^31-1],則輸出0

    思路:邊取模邊算結果,結果存longlong判界

 

3. Palindrome Number