摘要: Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 public class Solution { 2 public int reverse(int x) { 3 ... 阅读全文
posted @ 2014-09-11 19:06 birdhack 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ... 阅读全文
posted @ 2014-09-11 18:46 birdhack 阅读(102) 评论(0) 推荐(0) 编辑