会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Jean
努力!
博客园
管理
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2015年11月23日
LRU Cache
摘要: 题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support th...
阅读全文
posted @ 2015-11-23 19:59 JSRGFJZ6
阅读(136)
评论(0)
推荐(0)
2015年11月22日
Min Stack
摘要: 题目:Design a stack that supports push, pop, top, and retrieving the minimum element in constant tim...
阅读全文
posted @ 2015-11-22 09:17 JSRGFJZ6
阅读(137)
评论(0)
推荐(0)
Copy List with Random Pointer
摘要: 题目:A linked list is given such that each node contains an additional random pointer which could po...
阅读全文
posted @ 2015-11-22 09:14 JSRGFJZ6
阅读(131)
评论(0)
推荐(0)
2015年11月21日
Decode Ways
摘要: 题目:A message containing letters from A-Z is being encoded to numbers using the following mapping:'...
阅读全文
posted @ 2015-11-21 23:47 JSRGFJZ6
阅读(101)
评论(0)
推荐(0)
Populating Next Right Pointers in Each Node II
摘要: 题目:Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree coul...
阅读全文
posted @ 2015-11-21 00:43 JSRGFJZ6
阅读(148)
评论(0)
推荐(0)
2015年11月20日
Populating Next Right Pointers in Each Node
摘要: 题目:Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right;...
阅读全文
posted @ 2015-11-20 23:44 JSRGFJZ6
阅读(88)
评论(0)
推荐(0)
2015年11月19日
Reverse Linked List
摘要: 题目:Reverse a singly linked list.思路:这很简单,每次新建一个链表,并设立tail 尾节点,每次指向他。注意一种方法,每次在链表开始出添加一个新的链表。(非常重要)代...
阅读全文
posted @ 2015-11-19 23:58 JSRGFJZ6
阅读(128)
评论(0)
推荐(0)
Reverse Linked List II
摘要: 题目: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
阅读(134)
评论(0)
推荐(0)
2015年11月18日
Triangle
摘要: 题目: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
阅读(229)
评论(0)
推荐(0)
Surrounded Regions
摘要: 题目: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
阅读(118)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页