1、文件结构 每个C++/C程序通常分为两个文件: a、用于保存程序的声明(declaration),称为头文件。 b、用于保存程序的实现(implementation),称为定义文件(definition)。 C++/C程序的头文件以".h"为后缀,C程序的定义文件以"...
分类:
编程语言 时间:
2014-07-16 18:38:36
阅读次数:
133
BracketsTime Limit:1000MSMemory Limit:65536KTotal Submissions:2938Accepted:1516DescriptionWe give the following inductive definition of a “regular bra...
分类:
其他好文 时间:
2014-07-16 18:37:01
阅读次数:
214
高维数据的可伸缩最近邻算法FLANN
1. 简介
在计算机视觉和机器学习中,对于一个高维特征,找到训练数据中的最近邻计算代价是昂贵的。对于高维特征,目前来说最有效的方法是 the randomized k-d forest和the priority search k-means tree,而对于二值特征的匹配 multiple hierarchical clusteringtrees则...
分类:
其他好文 时间:
2014-07-15 10:42:24
阅读次数:
727
一、Mysql5.6新特性....复制功能的改进⒈支持多线程复制,(slave-parallel-workers=00:表示禁用多线程功能;)事实上是针对每个database开启相应的独立线程。即每个库有一个单独的(sqlthread),如果线上业务中,只有一个database或者绝大多数压力集中在个别database的话,多线..
分类:
数据库 时间:
2014-07-14 12:30:47
阅读次数:
444
HDMI,全称为(High Definition Multimedia Interface)高清多媒体接口,主要用于传输高清音视频信号。HDMI引脚:HDMI有A,B,C,D,E五种引脚类型,目前市面中比较常见的就是Type A:其中 1-9都是TMDS数据传输实际上用到的引脚,分为0,1,2三组....
分类:
其他好文 时间:
2014-07-13 21:57:21
阅读次数:
341
今天做了Leetcode上面一道题Remove Duplicates from Sorted List II,要去去除链表中重复的节点,代码如下 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * ...
分类:
其他好文 时间:
2014-07-13 21:23:10
阅读次数:
160
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
/**
* Definition for bi...
分类:
其他好文 时间:
2014-07-13 18:46:25
阅读次数:
249
题意为求出只由0,1组成的并且是所给数倍数的数,
广搜。。
因为首位不能为0,因此必为1;所以搜索的下一层为上一层的10倍和10倍加1;
#include
#include
#include
using namespace std;
__int64 s[9999999];
__int64 r;
void show(int q)
{
int i,j;
s[0]=1;
j=0;
i=0;...
分类:
其他好文 时间:
2014-07-13 16:36:40
阅读次数:
172
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
/**
* Definition for singly-linked list.
* class ListNode {
* int val;
* ...
分类:
其他好文 时间:
2014-07-13 16:32:04
阅读次数:
152
Brackets
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions:
Accepted:
Description
We give the following inductive definition of a “regular brackets” seq...
分类:
其他好文 时间:
2014-07-13 13:44:39
阅读次数:
202