2014年6月23日

leetcode - Reverse Integer

摘要: 题目:Reverse IntegerReverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about... 阅读全文

posted @ 2014-06-23 20:33 laihaiteng 阅读(132) 评论(0) 推荐(0) 编辑

leetcode - Recover Binary Search Tree

摘要: 题目:Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A ... 阅读全文

posted @ 2014-06-23 16:57 laihaiteng 阅读(174) 评论(0) 推荐(0) 编辑

导航