首页 > 其他
hdu 4292 Food【拆点网络流】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4292解法:拆人代码:#include #include #include #include #include #include #include <functiona...
分类:其他   时间:2015-08-19 07:07:13    收藏:0  评论:0  赞:0  阅读:173
101 Symmetric Tree
101 Symmetric Tree链接:https://leetcode.com/problems/symmetric-tree/ 问题描述: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree...
分类:其他   时间:2015-08-19 07:06:53    收藏:0  评论:0  赞:0  阅读:151
129 Sum Root to Leaf Numbers
129 Sum Root to Leaf Numbers链接:https://leetcode.com/problems/sum-root-to-leaf-numbers/ 问题描述: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An...
分类:其他   时间:2015-08-19 07:06:33    收藏:0  评论:0  赞:0  阅读:189
100 Same Tree
100 Same Tree链接:https://leetcode.com/problems/same-tree/ 问题描述: Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurall...
分类:其他   时间:2015-08-19 07:06:13    收藏:0  评论:0  赞:0  阅读:86
关于压缩软件gzip和xz的简单对比
晚上由于处理磁盘报警的需要,进行了日志压缩,在此次压缩中跟别使用了gzip和xz软件对文本进行了压缩,压缩的结果非常令人诧异。   出于对xz好奇的原因是因为在下载内核源代码时经常可以看到.xz格式的文件包,而且其大小比.gz和.bz2格式的文件都小一些。首先简单介绍一下gzip和xz: gzip:GZIP最早由Jean-loup Gailly和Mark Adler...
分类:其他   时间:2015-08-19 07:05:53    收藏:0  评论:0  赞:0  阅读:184
Scala中ListBuffer高效遍历
package com.dt.scala.list object ListBuffer_Internals { def main(args: Array[String]): Unit = { val list = List(1,2,3,4,5,6,7,8,9) increment(list) increment_MoreEffective(list) inc...
分类:其他   时间:2015-08-19 07:05:33    收藏:0  评论:0  赞:0  阅读:187
卡特兰数
卡特兰数又称卡塔兰数,英文名Catalan number,是组合数学中一个常出现在各种计数问题中出现的数列。由以比利时的数学家欧仁·查理·卡塔兰 (1814–1894)命名,其前几项为 : 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, .....
分类:其他   时间:2015-08-19 07:04:13    收藏:0  评论:0  赞:0  阅读:270
Spark入门实战系列--4.Spark运行架构
【注】该系列文章以及使用到安装包/测试数据 可以在《倾情大奉送--Spark入门实战系列》获取1、 Spark运行架构1.1术语定义lApplication:Spark Application的概念和Hadoop MapReduce中的类似,指的是用户编写的Spark应用程序,包含了一个Driver...
分类:其他   时间:2015-08-19 07:04:03    收藏:0  评论:0  赞:0  阅读:235
Qt中的parent形参
在 派生类的构造函数初始化列表中 调用 父类的带有参数的构造函数,是为了初始化从父类继承来的成员变量。因为这些变量无法直接初始化,只能采用这种方式初始化。而在qt中,MainWindow中的某成员变量(指向父组件的指针,假定为p)无法直接初始化,只能在初始化列表中调用QMainWindow(pare...
分类:其他   时间:2015-08-19 07:03:53    收藏:0  评论:0  赞:0  阅读:199
zoj 3706 Break Standard Weight(dp)
Break Standard WeightTime Limit: 2 Seconds Memory Limit: 65536 KBThe balance was the first mass measuring instrument invented. In its traditional f...
分类:其他   时间:2015-08-19 07:03:33    收藏:0  评论:0  赞:0  阅读:198
Standard C Episode 11
复杂声明。C语言常常因为声明的语法问题而受到人们的批评,特别是设计到函数指针的语法。C语言的语法力图使声明和使用相一致。对于简单的情况,C语言的这种做法很有效,但是,如果情况比较复杂,则容易让人混淆,原因在于,C语言的声明不能从左至右阅读,而且复杂的声明往往还使用了太多的圆括号。这里看两个声明:in...
分类:其他   时间:2015-08-19 07:03:23    收藏:0  评论:0  赞:0  阅读:248
HDU-5074
Hatsune MikuTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 931Accepted Submission(s): 651Proble...
分类:其他   时间:2015-08-19 07:02:53    收藏:0  评论:0  赞:0  阅读:236
CC150-链表3
实现一个算法删除链表中的某个结点,假定你只能访问这个这结点:输入:单向链表a->b->c->d->e中的结点c结果:不返回任何数据,但是该链表变为a->b->d->e分析:当结点为空或者是尾结点的时候,该算法实现不了。定义一个临时的next指针指向要删除结点的后续,n的data移动到next的dat...
分类:其他   时间:2015-08-19 07:02:43    收藏:0  评论:0  赞:0  阅读:252
Standard C Episode 12
FILE结构体用来记录文件相关的信息FILE结构体类型的指针变量叫做文件指针。fopen函数可以打开一个文件并制作对应的FILE结构体变量,把结构体变量的地址作为返回值使用。如果执行失败则返回NULL。 1 /* 2 文件练习 3 */ 4 #include 5 int main() { 6...
分类:其他   时间:2015-08-19 07:02:33    收藏:0  评论:0  赞:0  阅读:242
BZOJ4242 : 水壶
对于任意两个建筑物,以它们之间的最短路为边权求出最小生成树。则询问(x,y)的答案为最小生成树上x到y路径上边权的最大值。BFS求出离每个点最近的建筑物以及到它的距离,可以发现只有交界处的边才有用,用这些边求MST即可。#include#includeusing namespace std;cons...
分类:其他   时间:2015-08-19 07:02:23    收藏:0  评论:0  赞:0  阅读:321
hdu 4283 You Are the One(区间dp)
Problem Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the....
分类:其他   时间:2015-08-19 07:02:13    收藏:0  评论:0  赞:0  阅读:221
Contain Duplicate III*******
Given an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennums[i]andnums[j]is at mo...
分类:其他   时间:2015-08-19 07:01:53    收藏:0  评论:0  赞:0  阅读:176
Contain Duplicate II
Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the differe...
分类:其他   时间:2015-08-19 07:01:33    收藏:0  评论:0  赞:0  阅读:109
画结构图的神器 Graphviz
经常看到别人的论文里各种优美的图,没想过它们是怎么来的,前两天也是在看论文的时候被推荐了一款画图软件graphviz,稍微了解了一下这个画图软件,据说是贝尔实验室的几位牛人开发出来的,试了一下觉得很不错。只要输入对象间的关系,定义它们的属性,便可以用软件自带的画图引擎画出一副漂亮的图。另外这个软件还...
分类:其他   时间:2015-08-19 07:01:23    收藏:0  评论:0  赞:0  阅读:243
分享给大家一个简单的数据导出excel类
_charset($fileName); header("Content-Type: application/vnd.ms-excel; charset=gbk"); header("Content-Disposition: inline; filename=\"" . ...
分类:其他   时间:2015-08-19 07:01:13    收藏:0  评论:0  赞:0  阅读:275
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!