码迷,mamicode.com
首页 >  
搜索关键字:implement stack usin    ( 11956个结果
java 关于extends 和implement的区别
在java中extends用于继承父类,只要父类不是声明为final或者为abstract类就可以,但是java不支持多重继承。可以使用接口实现多重继承implements,继承只能继承一个类,但implements可以实现多个接口,用逗号分开就行了比如class A extends B imple...
分类:编程语言   时间:2014-07-09 21:11:46    阅读次数:290
android录制视屏(预览,倒计时)
android用mediarecord录制视屏,可以设置视屏格式,大小,还有拍摄前预览,倒计时功能要自己用hander做。 1,CameraPreview.java//预览classpublic class CameraPreview extends SurfaceView implement...
分类:移动开发   时间:2014-07-08 23:57:11    阅读次数:494
[leetcode] LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
分类:其他好文   时间:2014-07-08 22:54:28    阅读次数:287
大数据导出报错
1、错误描述 java.lang.IllegalArgumentException:Can not find a java.io.InputStream  with the name [inputStream] in the invocation stack. Check the tag specified for this action 2、错误原因 3、解决办法...
分类:其他好文   时间:2014-07-08 18:33:04    阅读次数:237
用递归翻转一个栈 Reverse a stack using recursion
明确递归语句之前的语句都是顺序执行,而递归语句之后的语句都是逆序执行package recursion; import java.util.Stack; public class Reverse_a_stack_using_recursion { /* Input stack: 3 2 1 Output stack: 1 2 3 */ public s...
分类:其他好文   时间:2014-07-08 13:39:49    阅读次数:143
LeetCode——String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2014-07-08 12:52:05    阅读次数:200
CTCI 1.2
Since I mainly use Java, this problem seems meaning less for me to implement it with Java. Just use StringBuilder to append each character in string f...
分类:其他好文   时间:2014-07-06 13:33:34    阅读次数:296
点-双连通分量模板
by:白书 #define M 10000 int pre[M],dfs_clock,iscut[M],low[M],bcc_cnt,bccno[M]; vectorG[M],bcc[M]; struct Edge { int u,v; Edge(int from,int to) { u=from; v=to; } }; stack S; int dfs(int u,int fa...
分类:其他好文   时间:2014-07-06 11:29:32    阅读次数:198
.NET的装箱与拆箱内幕
装箱与拆箱是.NET中非常重要的概念。 装箱是将值类型转换成引用类型,或者是实现了接口的值类型。装箱将数据存储的空间由Thread stack转存到了Managed Heap中。凡是在Managed Heap中开辟空间,都将触发GC(垃圾回收),在Thread statck将不会触发垃圾回收。 拆箱就是将数据从Managed Heap中提取出来,并拷贝到Thread stack中。所以拆箱会形...
分类:Web程序   时间:2014-07-06 09:33:05    阅读次数:272
UVa 10152 - ShellSort 题解
按他的方法排序,每次移动一个数到顶点,排成需要的序列。 Problem D: ShellSort He made each turtle stand on another one's back And he piled them all up in a nine-turtle stack. And then Yertle climbed up. He sat down on the p...
分类:其他好文   时间:2014-07-06 09:15:42    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!