摘要:
problem:Reverse a singly linked list.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both?solution:头插法逆转链表/*... 阅读全文
摘要:
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return... 阅读全文
摘要:
problem:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321solution:逐个取数字; 处理溢出问题 (INT_MIN INT_MAX)class Soluti... 阅读全文
摘要:
problem:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one uniqu... 阅读全文