码迷,mamicode.com
首页 >  
搜索关键字:stack frame    ( 16930个结果)
071 Simplify Path
071 Simplify Path有了split,天下我有class Solution: # @param {string} path # @return {string} def simplifyPath(self, path): stack = [] ...
分类:其他好文   时间:2015-07-20 15:58:56    阅读次数:92
Swing 学习1
AWT和swing中框架和组件类的继承 Object Component ContainerJComponent WindowJPanel Frame JFrame
分类:Windows程序   时间:2015-07-20 15:45:06    阅读次数:145
最小堆min_stack
class MinStack {public: void push(int x) { ele.push(x); if(min.empty()||x ele; stack min;};
分类:其他好文   时间:2015-07-20 14:21:23    阅读次数:92
[C++设计模式] adapter 适配器模式
STL中,stack对vector或者双端队列进行封装,提供stack操作的接口就是典型的适配器模式。 将一个类的接口转换成客户希望的另外一个接口,就是适配器模式。 使用适配器模式有以下优点: 降低了去实现一个功能点的难度,可以对现有的类进行包装,就可以进行使用了; 提高了项目质量,现有的类一般都是经过测试的,使用了适配器模式之后,不需要对旧的类进行全面的覆盖测试; 总的来说,提...
分类:编程语言   时间:2015-07-20 13:02:04    阅读次数:219
Hadoop Web项目--Friend Find系统
Friend Find系统是一个寻找相似用户的系统。用户填写自己的信息后就可以在本系统内找到和自己志同道合的朋友。本系统使用的是在http://stackoverflow.com/网站上的用户数据。Stack Overflow是一个程序设计领域的问答网站,隶属Stack Exchange Network。网站允许注册用户提出或回答问题,还允许对已有问题或答案加分、扣分或进行修改,条件是用户达到一定的“声望值”。“声望值”就是用户进行网站交互时能获取的分数。当声望值达到某个程度时,用户的权限就会增加,比如声望...
分类:Web程序   时间:2015-07-20 12:57:32    阅读次数:189
iOS开发UI基础—手写控件,frame,center和bounds属性
1.手写控件的步骤(1)使用相应的控件类创建控件对象(2)设置该控件的各种属性(3)添加控件到视图中(4)如果是button等控件,还需考虑控件的单击事件等(5)注意:View Contollor和view的关系2.1frame、center和bounds属性frame:控制位置和大小center:...
分类:移动开发   时间:2015-07-20 12:47:40    阅读次数:139
数据结构之堆栈(数组实现)
/***************************** Date :2015-07-20* Description:stack.h*****************************/#ifndef _STACK_H#define _STACK_Htemplateclass Stack{...
分类:编程语言   时间:2015-07-20 12:26:01    阅读次数:98
leetCode(45):Min Stack
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 the element on top of the stack.top() -- Get ...
分类:其他好文   时间:2015-07-20 09:16:26    阅读次数:96
iOS动画之活动指示器
1.结果展示2.实现思路1.创建复制图层 CAReplicatorLayer *replicator = [CAReplicatorLayer layer]; replicator.frame = CGRectMake(50, 50, 200, 200); replicator.backgroundColor = [UIColor redColor].CGColor; [...
分类:移动开发   时间:2015-07-20 06:55:42    阅读次数:225
iOS view的frame和bounds
一、首先列一下公认的资料:先看到下面的代码你肯定就明白了一些:-(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.height....
分类:移动开发   时间:2015-07-20 06:45:04    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!