上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support th... 阅读全文
posted @ 2015-11-23 19:59 JSRGFJZ6 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目:Design a stack that supports push, pop, top, and retrieving the minimum element in constant tim... 阅读全文
posted @ 2015-11-22 09:17 JSRGFJZ6 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目:A linked list is given such that each node contains an additional random pointer which could po... 阅读全文
posted @ 2015-11-22 09:14 JSRGFJZ6 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:A message containing letters from A-Z is being encoded to numbers using the following mapping:'... 阅读全文
posted @ 2015-11-21 23:47 JSRGFJZ6 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 题目:Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree coul... 阅读全文
posted @ 2015-11-21 00:43 JSRGFJZ6 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right;... 阅读全文
posted @ 2015-11-20 23:44 JSRGFJZ6 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 题目:Reverse a singly linked list.思路:这很简单,每次新建一个链表,并设立tail 尾节点,每次指向他。注意一种方法,每次在链表开始出添加一个新的链表。(非常重要)代... 阅读全文
posted @ 2015-11-19 23:58 JSRGFJZ6 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目:Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1-... 阅读全文
posted @ 2015-11-19 23:57 JSRGFJZ6 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjac... 阅读全文
posted @ 2015-11-18 18:07 JSRGFJZ6 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is capt... 阅读全文
posted @ 2015-11-18 18:04 JSRGFJZ6 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页