摘要: Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are some good questions to ask before coding. Bonus poi... 阅读全文
posted @ 2016-11-28 20:17 copperface 阅读(124) 评论(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 L S I I G ... 阅读全文
posted @ 2016-11-28 19:49 copperface 阅读(390) 评论(0) 推荐(0) 编辑