#include#include#include#include#include#include#includeusing
namespace std;class node{public: int val; node* left; node* right; node():va...
分类:
其他好文 时间:
2014-05-26 09:10:54
阅读次数:
179
#include#include#include#include#include#include#includeusing
namespace std;class node{public: int val; node* left; node* right; node():va...
分类:
其他好文 时间:
2014-05-26 06:48:48
阅读次数:
246
using System;using System.Collections.Generic;using
System.IO;using System.Linq;using
System.Runtime.Serialization.Formatters.Binary;using System.Text...
分类:
数据库 时间:
2014-05-26 06:18:47
阅读次数:
443
题目一:
Given a binary tree containing digits from 0-9 only, each root-to-leaf
path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Fin...
分类:
其他好文 时间:
2014-05-26 04:06:41
阅读次数:
248
题目链接:点击打开链接
题意:有两种操作,合并集合,查询第K大集合的元素个数。(总操作次数为2*10^5)
Treap模板(静态数组)
#include
#include
#include
#include
#include
const int maxNode = 500000 + 100;
const int inf = 0x3f3f3f3f;
struct Tr...
分类:
其他好文 时间:
2014-05-24 23:18:09
阅读次数:
522
日期: 2014年5月23日
博客: 铁锚
最近在查看MariaDB主从复制服务器 Master 的错误日志时看到很多条警告信息,都是提示 UUID()函数不安全,可能 Slave 产生的值和 Master不一致, 警告信息大致如下:
140522 15:11:10 [Warning]
Unsafe statement written to the binary log
using sta...
分类:
数据库 时间:
2014-05-24 21:54:38
阅读次数:
600
http://poj.org/problem?id=3013
题意:
Because of a technical difficulty, price of an edge will be (sum of weights of all descendant nodes) × (unit price of the edge).这句话一直没看懂。后面还以为是最小生成树。
正确...
分类:
其他好文 时间:
2014-05-24 20:27:13
阅读次数:
266
对于SQL的Join,在学习起来可能是比较乱的。我们知道,SQL的Join语法有很多inner的,有outer的,有left的,有时候,对于Select出来的结果集是什么样子有点不是很清楚。Coding
Horror上有一篇文章,通过文氏图 Venn diagrams 解释了SQL的Join。我觉得...
分类:
数据库 时间:
2014-05-24 13:51:44
阅读次数:
354
subtree structure in tree
分类:
其他好文 时间:
2014-05-24 09:23:20
阅读次数:
283
1) Select the site to configure in IIS, right
click and select "Properties"2) Under HTTP Headers Tab, select "File Types"
under the MIME Map section a...
分类:
其他好文 时间:
2014-05-24 09:08:53
阅读次数:
299