码迷,mamicode.com
首页 >  
搜索关键字:node connectivity    ( 28115个结果
LeetCode: Balanced Binary Tree [110]
【题目】 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1. 【题意】 判断二叉树是否是平衡二叉树 【思路】 平衡二...
分类:其他好文   时间:2014-06-20 11:02:54    阅读次数:173
二叉树先序中序非递归算法
一直想要写的 二叉树 中序 先序 后序遍历算法 递归的太简单了,就不写了。关键是非递归版本。 先序: 我自己的版本: void RootPreTraverse(Node* p) { Stack S; while(S not empty) { p=S.top(); S.pop(); Show(p); if(p->right!=null) S...
分类:其他好文   时间:2014-06-20 10:55:49    阅读次数:279
使用批处理命令设置windows系统的ip地址和dns
找到对应的网卡名称 使用命令:ipconfig ipconfig/all Windows IP Configuration Host Name . . . . . . . . . . . . : D501-4-3 Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . ....
分类:Windows程序   时间:2014-06-20 09:12:20    阅读次数:443
J2EE(二)— JDBC
JDBC   JDBC (Java Data Base Connectivity,Java数据库连接)是一种用于执行SQL语句的Java API。 看到Java数据库连接,只要是从vb及.NET学过来的,肯定会想到ODBC(开放式数据库连接),JDBC和ODBC都是用来连接数据库的启动程序,都用于应用程序和数据库的交互。   结构模型 JDBC   根据Ja...
分类:数据库   时间:2014-06-20 09:07:35    阅读次数:299
Balanced Binary Tree
题目 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node...
分类:其他好文   时间:2014-06-20 09:02:56    阅读次数:232
poj 1553
题意:求1到2所有路径中最小蛙跳 蛙跳:在一条路径中所有蛙跳中的最大蛙跳思路:dijska算法思想#include#includeusing namespace std;struct Node{ double x,y;}node[222];double dist[222];int s[222];in...
分类:其他好文   时间:2014-06-11 12:40:47    阅读次数:218
nodejs addon用c++
1, 安装nodejs安装python。2,安装node-gyp:sudo npm install -g node-gyp3,写代码:新建一个目录,创建hello.cc文件,然后创建binding.gyp文件:hello.cc#include#includeusingnamespace v8;Han...
分类:编程语言   时间:2014-06-11 11:10:24    阅读次数:380
C++实现简单的单链表
下面实现的是一个简单的单链表功能不多,学习使用#pragma once#include using namespace std;class ListEx{private: struct Node { Node* next; int data; N...
分类:编程语言   时间:2014-06-11 10:06:26    阅读次数:246
[Nodejs] 错误 DEPTH_ZERO_SELF_SIGNED_CERT
修改环境变量:process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
分类:Web程序   时间:2014-06-11 09:48:30    阅读次数:1000
LeetCode: Populating Next Right Pointers in Each Node [116]
【题目】 Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be...
分类:其他好文   时间:2014-06-07 14:28:36    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!