摘要: Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? Similar Questions Palindrome Numbe 阅读全文
posted @ 2017-07-21 20:21 Deribs4 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thi 阅读全文
posted @ 2017-07-21 11:24 Deribs4 阅读(107) 评论(0) 推荐(0) 编辑
摘要: For an integer n, we call k>=2 a good base of n, if all digits of n base k are 1. Now given a string representing n, you should return the smallest go 阅读全文
posted @ 2017-07-21 11:02 Deribs4 阅读(421) 评论(0) 推荐(0) 编辑