摘要:
Given a 32-bit signed integer, reverse digits of an integer. 给定一个范围为 32 位 int 的整数,将其颠倒。 该题对于JavaScript比较简单,给出的三个例子基本就把所有的难点都分别列出来了。 主要考虑几种情况。 阅读全文
摘要:
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 长度 阅读全文