摘要: https://leetcode-cn.com/problems/palindrome-number/ 虽然很简单,还是写一下题解吧。 思路1. 首先判断负数和个位数是0但x不等于0的一定不是回文。然后翻转字符串的一半,判断另一半时候和翻转后的相等。注意:121这种奇数位结构。 1 public c 阅读全文
posted @ 2020-03-30 05:17 Quintinz 阅读(221) 评论(0) 推荐(0) 编辑