L_J_SHOU

2014年2月15日

微软面试100题---将 二叉搜索树 转化成 有序的双向链表

摘要: Description:输入一棵二元查找树,将该二元查找树转换成一个排序的双向链表。二叉搜索树和双向链表的定义与实现参考: http://blog.csdn.net/shoulinjun/article/details/18449445 http://blog.csdn.net/shoulinjun... 阅读全文

posted @ 2014-02-15 22:52 L_J_SHOU 阅读(155) 评论(0) 推荐(0)
LeetCode----Longest Consecutive Sequence

摘要: Description:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4, 200, 1, 3, 2]... 阅读全文

posted @ 2014-02-15 20:10 L_J_SHOU 阅读(132) 评论(0) 推荐(0)