摘要: 题目描述Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321思路一开始想的比较简单,直接循环取尾数*10。#includeusing namespace ... 阅读全文
posted @ 2017-01-10 10:38 云胡同学 阅读(102) 评论(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 ... 阅读全文
posted @ 2017-01-10 10:02 云胡同学 阅读(108) 评论(0) 推荐(0)