2014年5月3日
摘要: 2014-05-03 23:35题目链接原题:For a given node in binary search tree find a next largest number in search tree.题目:给定一个二叉搜索树的节点,找出此节点在树中的中序后继节点,也就是比它大的最小节点。解法... 阅读全文
posted @ 2014-05-03 23:52 zhuli19901106 阅读(162) 评论(0) 推荐(0)
摘要: 2014-05-03 23:18题目链接原题:Insert a element in a sorted circular linked list题目:题意简单明了,向一个有序的循环单向链表中插入元素,使得链表仍然有序。解法:由于是循环链表,所以表尾指向表头。链表只能顺序访问,不额外添加数据的情况下就... 阅读全文
posted @ 2014-05-03 23:33 zhuli19901106 阅读(155) 评论(0) 推荐(0)
摘要: 2014-05-03 22:10题目链接原题:Given a dictionary, and a list of letters ( or consider as a string), find the longest word that only uses letters from the str... 阅读全文
posted @ 2014-05-03 22:42 zhuli19901106 阅读(332) 评论(0) 推荐(0)
摘要: 2014-05-03 21:57题目链接原题:Many sticks with length, every time combine two, the cost is the sum of two sticks' length. Finally, it will become a stick, wh... 阅读全文
posted @ 2014-05-03 22:06 zhuli19901106 阅读(202) 评论(0) 推荐(0)