Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a ...
分类:
其他好文 时间:
2016-04-25 22:19:29
阅读次数:
130
题目:http://acm.hdu.edu.cn/showproblem.php?pid=5384 用字典树、AC自动机两种做法都可以做 1 #include<stdio.h> 2 #include<string.h> 3 #include<string> 4 #include<iostream> ...
分类:
其他好文 时间:
2016-04-25 22:18:37
阅读次数:
200
Login.java LoginCl.java Welcome.java ...
分类:
其他好文 时间:
2016-04-25 22:17:49
阅读次数:
149
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: ...
分类:
其他好文 时间:
2016-04-25 22:17:29
阅读次数:
172
判定边界(Decision Boundary)
上一次我们讨论了一个新的模型——逻辑回归模型(Logistic Regression),在逻辑回归中,我们预测:
当hø大于等于0.5时,预测y=1当hø小于0.5时,预测y=0
根据上面的预测,我们绘制出一条S形函数,如下:
根据函数图像,我们知道,当
z=0时,g(z)=0.5 z>0时,g(z)>0.5 ...
分类:
其他好文 时间:
2016-04-25 21:15:33
阅读次数:
601
头:header内容:content/container尾:footer导航:nav侧栏:sidebar栏目:column页面外围控制整体布局宽度:wrapper左右中:left right center登录条:loginbar标志:logo广告:banner页面主体:main热点:hot新闻:ne ...
分类:
其他好文 时间:
2016-04-25 21:13:10
阅读次数:
527
本来想直接一个一个地减的~~~~ 太耗时了。 1 #include<iostream> 2 #include<cstring> 3 int lena,lenb,lenc,lend,lene; 4 int comp(int d[],int b[]) 5 { 6 int len; 7 if(lend>l ...
分类:
其他好文 时间:
2016-04-25 21:13:15
阅读次数:
207
题意:从起点走到地面的最短时间 分析:每一层只能由上面的掉下来,可能是上面的任何一层,那么反过来,上面的每一层只能由左端或者右端往下掉,掉到下面的某一层的左右端点包含上面这一层的左端或者右端,那么将这n个台阶按照从下往上排序。 dp[i][0]表示从下面到达第i层的左端花费最短的时间,dp[i][1 ...
分类:
其他好文 时间:
2016-04-25 21:12:02
阅读次数:
197
属性/方法名: 说明: [基本属性] URL: (String); 指定媒体位置,本机或网络地址 uiMode:(String); 播放器界面模式,可为Full, Mini, None, Invisible playState:(integer); 播放状态,1=停止,2=暂停,3=播放,6=正在缓 ...
分类:
其他好文 时间:
2016-04-25 21:09:59
阅读次数:
183
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1087 Problem Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is v ...
分类:
其他好文 时间:
2016-04-25 21:10:07
阅读次数:
277
《人在囧途之太囧》是继《人在囧途》之后的又一部喜剧作品。看了这个影片之后给我的感觉是,它不光给你带来乐趣,还会给你带来一些思考,也就是看完影片后会在你的脑海里留下印象。整个影片是以徐朗和高渤为了争夺公司的经营权而展开,焦点在所谓的“油霸”的高科技产品,于是两个中国人开始了在泰国的心灵之旅。王宝是个乐 ...
分类:
其他好文 时间:
2016-04-25 21:10:29
阅读次数:
213
本文将介绍利用蒙特卡罗方法对误码率进行仿真的基本原理和基本原则。 1. 简介 误码率是通信系统性能评价的一个重要指标,在给定信道、编译码方式下,误码率是一个固定取值。少部分情况下,可以通过理论推导得到理论的误码率,但是在大多数情况下,理论误码率无法推得,这时往往考虑采用蒙特卡罗方法对误码率进行仿真。... ...
分类:
其他好文 时间:
2016-04-25 21:10:50
阅读次数:
309
[必做 1] 列出成绩录入系统功能需求。 进行较为全面的比较;比如科目的平均成绩或者挂科率之类 的。比如自己成绩的曲线图。 [必做 2] 画出该学生成绩录入系统的用例图。 A B C D E F G H I 3 学生ABCDEFGHIJ科目一二三四成绩1.2.3.4.5.6.7.8.9.10 [必做 ...
分类:
其他好文 时间:
2016-04-25 21:08:13
阅读次数:
177
1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 1019 逆序数 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 ...
分类:
其他好文 时间:
2016-04-25 21:07:32
阅读次数:
301
Give your time life! Maybe I have said this sentence too much , now I can not remember the passion I used to have . And also I can not remember the pe ...
分类:
其他好文 时间:
2016-04-25 21:09:17
阅读次数:
273