摘要: 题目说明: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return –321 程序代码: #include using namespace std; int reverse2(int x) { int result[20] = {0}; ... 阅读全文
posted @ 2016-03-17 23:34 Quincy 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 题目说明: 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 for better legibility) P A H N A P ... 阅读全文
posted @ 2016-03-17 22:49 Quincy 阅读(988) 评论(0) 推荐(0) 编辑