码迷,mamicode.com
首页 >  
搜索关键字:minimum depth of bin    ( 47234个结果
Palindrome Partitioning II
题目 Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = "a...
分类:其他好文   时间:2014-06-20 13:44:18    阅读次数:234
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
Python读写文本文档详解
以下3步问正确的程序片段: 1.写文件 #! /usr/bin/python3 'makeTextFile.py -- create text file' import os def write_file():     "used to write a text file."          ls = os.linesep     #get filena...
分类:编程语言   时间:2014-06-20 10:47:27    阅读次数:278
在linux中使用phpize安装php扩展模块
介绍:linux系统中,php安装成功后,在bin目录下会生成一个名叫phpize的可执行脚本,这个脚本的用途是动态安装php扩展模块。使用phpize脚本安装php扩展模块的好处:在安装php时没有安装的扩展,可以在以后随时安装上,且不需要重新安装PHP。安装步骤:1、切换到扩展模块目录在php源...
分类:Web程序   时间:2014-06-12 00:35:38    阅读次数:388
【Vegas原创】Mysql绿色版安装方法
原文:【Vegas原创】Mysql绿色版安装方法所谓的绿色版,就是没有installer的MySQL,完全需要靠人工来操作,好处是,重装系统后,只要再做一次本次配置,即可使用。 具体操作方法: 1,设置系统环境变量, 在Path中添加 D:\mysql\bin 2,修改my-small.ini文件内...
分类:数据库   时间:2014-06-11 22:04:35    阅读次数:344
树的子结构判断
题目:输入两棵二叉树A和B,判断B是不是A的子结构。 1 #include 2 using namespace std; 3 4 struct BinaryTreeNode { 5 int m_nValue; 6 BinaryTreeNode* m_pLeft; 7 Bin...
分类:其他好文   时间:2014-06-11 10:32:01    阅读次数:171
一些最重要的查询和过滤(most important queries and filters)
ES有很多不同的请求和过滤方式,然而常用的不多。我们将会在Search in depth中更详细的讲解,此处,就把最重要的一些查询和过滤做一个快速的介绍。termfilterterm filter被用来过滤确切的值,可以是数字,日期,boolean,或者not_analyzed的字符串:{"term...
分类:其他好文   时间:2014-06-11 10:17:09    阅读次数:247
[Nodejs] 错误 DEPTH_ZERO_SELF_SIGNED_CERT
修改环境变量:process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
分类:Web程序   时间:2014-06-11 09:48:30    阅读次数:1000
二叉树的递归遍历和非递归遍历(附详细例子)
二叉树的递归遍历和非递归遍历(附详细例子)         二叉树的遍历主要有递归实现和非递归实现,递归实现比较好理解,非递归实现主要是利用了栈的思想,后进先出,本文实现二叉树的非递归遍历主要是用了LinkedList可以当做栈使用的功能。具体例子如下: package com.sheepmu; import java.util.LinkedList; public class Bin...
分类:其他好文   时间:2014-06-07 13:06:05    阅读次数:269
python实现的链表
python实现的链表,包括插入、查找、删除操作 #!/usr/bin/python class linknode(): def __init__(self,k,n=None): self.key=k; self.next=n; def createlist(): #创建链表 n=raw_input("enter the num of nodes"); n=int(...
分类:编程语言   时间:2014-06-07 12:23:46    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!