摘要: 判断一个整数是不是回文 阅读全文
posted @ 2017-10-12 17:43 WegYcx 阅读(86) 评论(0) 推荐(0)
摘要: 将输入的字符串转换为整数 阅读全文
posted @ 2017-10-12 17:41 WegYcx 阅读(110) 评论(0) 推荐(0)
摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 反转整数 看到easy刚开始写了一段如上的代码就过了,知道某次面试遇到原题。面试官指出该段代码并不能通过,让我再想一下 阅读全文
posted @ 2017-10-12 17:30 WegYcx 阅读(123) 评论(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 阅读全文
posted @ 2017-10-12 17:02 WegYcx 阅读(159) 评论(0) 推荐(0)
摘要: 最长回文子串 拓展:最长回文子序列 阅读全文
posted @ 2017-10-12 16:45 WegYcx 阅读(99) 评论(0) 推荐(0)
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2017-10-12 15:30 WegYcx 阅读(108) 评论(0) 推荐(0)