码迷,mamicode.com
首页 >  
搜索关键字:check point r77.30    ( 16204个结果
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 structurally identical an...
分类:其他好文   时间:2014-08-17 19:49:42    阅读次数:190
Symmetric Tree
-----QUESTION-----Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symme...
分类:其他好文   时间:2014-08-17 19:47:22    阅读次数:259
bind的例子
10.24 给定一个string,使用bind和check_size在一个int的vector中查找第一个大于string长度的值。#include#include#include#include#includeusing namespace std;bool check_size(vector::...
分类:其他好文   时间:2014-08-17 18:18:52    阅读次数:166
计算几何模板
#include#include#include#include#include#define eps 1e-7using namespace std;struct Point{ double x,y; Point(){} Point(double x,double y):x(x)...
分类:其他好文   时间:2014-08-17 16:55:42    阅读次数:223
最近点对模板
#include #include #include #include #include using namespace std;const double eps = 1e-6;const int MAXN = 100010;const double INF = 1e20;struct Point{...
分类:其他好文   时间:2014-08-17 14:18:12    阅读次数:168
汉澳sinox2014最佳硬件配置
汉澳sinox2014并不支持所有的硬件,为了得到最佳体验,推荐购置新机子的配置 CPU 英特尔 Xeon E3-1230 V2 (四核) //实际上是八核心 主板 华硕 B75M-PLUS (Intel B75 (Panther Point-M Enahnced)) //内置网卡声卡 内存 32 GBytes //海盗船内存条,8G估计够了 显卡 NVIDIA(英伟达) GeForce...
分类:其他好文   时间:2014-08-17 09:11:21    阅读次数:327
Tree Operations 打印出有向图中的环
题目: You are given a binary tree with unique integer values on each node. However, the child pointers on each node may point to any other node in the tree including itself, introducing cycles into the...
分类:其他好文   时间:2014-08-17 09:11:11    阅读次数:301
【ThinkingInC++】23、一个袖珍的C库
/** * 功能:一个袖珍的C库 * 时间:2014年8月17日08:05:26 * 作者:cutter_point */ //这个头文类似一个C的库 #ifndef CLIB_H_INCLUDED #define CLIB_H_INCLUDED typedef struct CStashTag { int size; //每个小空间的大小 int quantit...
分类:编程语言   时间:2014-08-17 08:07:51    阅读次数:234
POJ 3090 Visible Lattice Points
Description A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the origin if the line from (0, 0) to (x, y) d...
分类:其他好文   时间:2014-08-16 21:11:56    阅读次数:206
(凸包模板)(刘汝佳)
struct point{ int x,y;} p[N],stack[N];bool cmp(point A,point B){ if(A.y==B.y)return A.x1&&cross(stack[top-2],stack[top-1],p[i])=0; i--) { ...
分类:其他好文   时间:2014-08-16 16:20:40    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!