题目描述:(链接)Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -...
分类:
其他好文 时间:
2015-10-24 00:08:58
阅读次数:
203
1.constant+vowelstand upgive upget up2.vowel+vowel2.1 i:/i/ei/ai/oi [j]stay upcarry it2.2 u:/u/eu/au [w]go onhow about3.constant+constant3.1 bus stati...
分类:
其他好文 时间:
2015-10-23 13:25:32
阅读次数:
199
buffer资源下面来谈谈buffer的管理。buffer资源从广义上就是C语言的数组。如下图所示。图 buffer的广义模型在渲染管线中,无论是opengl还是dx或者其他的渲染api,都会提供下列的buffer类型。vertex buffer,index buffer,constant buff...
分类:
其他好文 时间:
2015-10-19 22:25:44
阅读次数:
247
题目:
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant...
分类:
其他好文 时间:
2015-10-17 12:16:08
阅读次数:
179
struts.objectFactory这个属性用 于说明Struts2的 对象池创建工厂,Struts2也有自己的对象池,就像Spring那样,在配置文件中你可以引用对象池中的对象,你可以借助于Spring中的对象池, 当想要得到Spring中的对象池时,申明struts.objectFactor...
分类:
其他好文 时间:
2015-10-15 15:50:18
阅读次数:
305
private static char[] constant = { '0','1','2','3','4','5','6','7','8','9', 'a','b','c','d','e','f','g','h','i','j','k','l'.
Question:Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1.....
分类:
其他好文 时间:
2015-10-11 21:32:52
阅读次数:
250
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-10-10 06:46:26
阅读次数:
151
QuestionDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() --...
分类:
其他好文 时间:
2015-10-08 09:04:41
阅读次数:
193
Sort a linked list inO(nlogn) time using constant space complexity.class Solution {public: ListNode *sortList(ListNode *head) { if(!head || ...
分类:
其他好文 时间:
2015-10-03 10:40:19
阅读次数:
138