首页 > 2015年09月03日 > 全部分享
不用堆栈实现树的先序遍历
通常实现树的先序遍历时,我们都需要一个栈来记录位置信息,如果一颗二叉树当中本来就保存了指向父亲的节点,那么我们可以不用堆栈来实现先序遍历。#includeusing namespace std;class node{public: char value; node *parent,*le...
分类:其他   时间:2015-09-03 19:11:39    收藏:0  评论:0  赞:0  阅读:252
【JavaScript中的正则表达式】
原文地址:http://blog.csdn.net/xh16319/article/details/99878471. 正则表达式规则1.1 普通字符 字母、数字、汉字、下划线、以及后边章节中没有特殊定义的标点符号,都是"普通字符"。表达式中的普通字符,在匹配一个字符串的时候,匹配与之相同的一个字符...
分类:编程语言   时间:2015-09-03 19:11:29    收藏:0  评论:0  赞:0  阅读:200
获取验证码,60秒倒计时js
分类:Web开发   时间:2015-09-03 19:11:20    收藏:0  评论:0  赞:0  阅读:260
AutoCAD 中的系统变量与环境变量
AutoCAD 中的系统变量与环境变量
分类:其他   时间:2015-09-03 19:11:09    收藏:0  评论:0  赞:0  阅读:302
jdbc例子
public class ConnMysql { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("com.mysql.jdbc.Driver");....
分类:数据库技术   时间:2015-09-03 19:11:00    收藏:0  评论:0  赞:0  阅读:309
Javascript高级程序设计——面向对象之实现继承
原型链: 构造函数中都有一个prototype属性指针,这个指针指向原型对象,而创建的实例也有指向这个原型对象的指针__proto__。当实例查找方法时先在实例上找,找不到再通过__proto__到原型对象上查找。如果原型对象是另一个类型的实例,那么原型对象包含一个指向另一个原型对象的指针、另一个....
分类:编程语言   时间:2015-09-03 19:10:50    收藏:0  评论:0  赞:0  阅读:282
第三讲:post-processsing with vcs+ files
1,dump wave by system function $vcdpluson(level_number,module_instance,....|net_or_reg) $vcdplusoff(module_instance,...|net_or_reg)2.debug仿真时下面要考虑:1.....
分类:其他   时间:2015-09-03 19:10:39    收藏:0  评论:0  赞:0  阅读:309
PHP三步实现静态页面
平时看到一些新闻网站里面的每一条新闻的页面地址都是类似这样的:http://www.ibye.cn/news/1.html这种格式很受搜索引擎的青睐,相反,类似这一种:http://www.ibye.cn/news/1 就没有那么受欢迎了这里有一种方法可以生成一个静态的页面:第一步,打开缓冲区,在代...
分类:Web开发   时间:2015-09-03 19:10:30    收藏:0  评论:0  赞:0  阅读:269
CPlus的简单线程的制作
1、线程需要用到2、利用句柄创建并执行线程:HANDLE hThread = CreateThread(NULL, 0, Fun, &tp, 0, NULL); CloseHandle(hThread);注意:线程的函数必须是以DWORD WINAPI functionName(LPV...
分类:编程语言   时间:2015-09-03 19:10:19    收藏:0  评论:0  赞:0  阅读:298
AC自动机模板
struct ACauto{ int ch[maxn][26]; int sz; int f[maxn],last[maxn],val[maxn],cnt[maxn]; void init(){ sz=1; memset(ch[0],0,sizeo...
分类:其他   时间:2015-09-03 19:10:09    收藏:0  评论:0  赞:0  阅读:265
interface
继承"基类"跟继承"接口"都能实现某些相同的功能,但有些接口能够完成的功能是只用基类无法实现的 1.接口用于描述一组类的公共方法/公共属性. 它不实现任何的方法或属性,只是告诉继承它的类 《至少》要实现哪些功能,继承它的类可以增加自己的方法. 2.使用接口可以使继承它的类: 命名统一/规范,易于维护...
分类:其他   时间:2015-09-03 19:09:59    收藏:0  评论:0  赞:0  阅读:228
文章分享:简单数据结构学习:单向链表
文章分享:简单数据结构学习:单向链表:https://www.textarea.com/aprikyb/jiandan-shujujiegou-xuexi-danxiang-lianbiao-252/
分类:其他   时间:2015-09-03 19:09:49    收藏:0  评论:0  赞:0  阅读:225
第二讲:vcs debugging basics
要求: 1.describe three methods of debugging verilog code using vcs 2.invoke ucli debugger(不重要) 3.debug verilog design using ucli(不重要)debugging方式: 1....
分类:其他   时间:2015-09-03 19:09:19    收藏:0  评论:0  赞:0  阅读:250
[LeetCode] Invert Binary Tree
Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1递归实现: 1 TreeNode* invertTree(TreeNo...
分类:其他   时间:2015-09-03 19:09:10    收藏:0  评论:0  赞:0  阅读:231
UVa-11584 - Partitioning by Palindromes
先用manacher找到以所有回文串,再暴力统计以每个字符为结尾的所有回文串,然后dp就容易了。最坏情况下是O(n^2) 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define pb push_back 7 using nam...
分类:其他   时间:2015-09-03 19:08:49    收藏:0  评论:0  赞:0  阅读:262
CPlus播放多媒体之播放声音
1、头文件需要,但是之前需要包含2、预处理#pragma comment3、完整代码如下: #include #include #include #pragma comment(lib,"winmm.lib")using namespace std;int main(){ mciSendSt...
分类:其他   时间:2015-09-03 19:08:39    收藏:0  评论:0  赞:0  阅读:251
纯css 图片自适应居中
html 结构 css.container{ width: 100%; height: 100%; text-align:center; position: fixed;}.container:after { display: inline-block; ...
分类:Web开发   时间:2015-09-03 19:08:31    收藏:0  评论:0  赞:0  阅读:286
Count Complete Tree Nodes
https://leetcode.com/problems/count-complete-tree-nodes/宽度优先搜索方法,超时!!/** * Definition for a binary tree node. * struct TreeNode { * int val; * ...
分类:其他   时间:2015-09-03 19:08:19    收藏:0  评论:0  赞:0  阅读:299
一次性代码(单例)
// CZTool.h一次性代码#import @interface CZTool : NSObject// 用单例设计模式,可以节省内存.// 书写单例// 1. 对外提供一个获取单例对象的接口(API)+(instancetype)sharedCZTool;@end// CZTool.m一次性代...
分类:其他   时间:2015-09-03 19:08:10    收藏:0  评论:0  赞:0  阅读:224
HDU 1060 Leftmost Digit (数学/大数)
Leftmost DigitTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14954Accepted Submission(s): 5775Pro...
分类:其他   时间:2015-09-03 19:07:49    收藏:0  评论:0  赞:0  阅读:259
863条   上一页 1 ... 13 14 15 16 17 ... 44 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!