2015年7月15日

7.Reverse Integer (INT; Overflow)

摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321思路:要注意溢出。用以下做法,会溢出。class Solution {public: int reverse(in... 阅读全文

posted @ 2015-07-15 15:58 joannae 阅读(154) 评论(0) 推荐(0) 编辑

6.ZigZag Conversion(Graph, traverse)

摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文

posted @ 2015-07-15 09:13 joannae 阅读(379) 评论(0) 推荐(0) 编辑

导航