摘要: 恢复内容开始 Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 题目要求:转成高度平衡的二叉搜索树。 高度平衡的二叉搜索树:i)左 阅读全文
posted @ 2017-06-14 20:13 王大咩的图书馆 阅读(270) 评论(0) 推荐(0) 编辑
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2017-06-14 16:19 王大咩的图书馆 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example,Given1->2- 阅读全文
posted @ 2017-06-14 14:50 王大咩的图书馆 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given1->1->2, return1->2.Given1->1->2->3->3, re 阅读全文
posted @ 2017-06-14 09:39 王大咩的图书馆 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 题意:合并两个排 阅读全文
posted @ 2017-06-14 09:18 王大咩的图书馆 阅读(217) 评论(0) 推荐(0) 编辑