上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 51 下一页
2014年5月6日
摘要: 2014-05-06 00:17题目链接原题:Given a 2-D matrix represents the room, obstacle and guard like the following (0 is room, B->obstacle, G-> Guard): 0 0 0 B G G ... 阅读全文
posted @ 2014-05-06 00:28 zhuli19901106 阅读(437) 评论(1) 推荐(1)
2014年5月4日
摘要: 2014-05-04 00:10题目链接原题:Write a function return an integer that satisfies the following conditions: 1) positive integer 2) no repeated digits, eg., 123... 阅读全文
posted @ 2014-05-04 00:21 zhuli19901106 阅读(260) 评论(0) 推荐(0)
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 阅读(159) 评论(0) 推荐(0)
摘要: 2014-05-03 23:18题目链接原题:Insert a element in a sorted circular linked list题目:题意简单明了,向一个有序的循环单向链表中插入元素,使得链表仍然有序。解法:由于是循环链表,所以表尾指向表头。链表只能顺序访问,不额外添加数据的情况下就... 阅读全文
posted @ 2014-05-03 23:33 zhuli19901106 阅读(154) 评论(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 阅读(329) 评论(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 阅读(201) 评论(0) 推荐(0)
2014年5月2日
摘要: 2014-05-02 10:47题目链接原题:1 Given an unordered array of positive integers, create an algorithm that makes sure no group of integers of size bigger than M... 阅读全文
posted @ 2014-05-02 11:03 zhuli19901106 阅读(304) 评论(0) 推荐(0)
摘要: 2014-05-02 10:40题目链接原题:Sink Zero in Binary Tree. Swap zero value of a node with non-zero value of one of its descendants so that no node with value ze... 阅读全文
posted @ 2014-05-02 10:46 zhuli19901106 阅读(714) 评论(0) 推荐(0)
摘要: 2014-05-02 10:07题目链接原题:Mapping '1' = 'A','B','C' '2' = 'D','E','F' ... '9' = input: 112 output :ouput = [AAD, BBD, CCD, AAE, AAF, BBE, BBF, CCE, CCF]题... 阅读全文
posted @ 2014-05-02 10:40 zhuli19901106 阅读(328) 评论(0) 推荐(0)
摘要: 2014-05-02 09:59题目链接原题:Group Anagrams input = ["star, astr, car, rac, st"] output = [["star, astr"],["car","rac"],["st"]);题目:给定一堆字符串,设法把anagram都排在一起。解... 阅读全文
posted @ 2014-05-02 10:05 zhuli19901106 阅读(236) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 51 下一页