码迷,mamicode.com
首页 >  
搜索关键字:minimum depth of bin    ( 47234个结果
linux:执行脚本出现/bin/sh^M: bad interpreter: No such file or directory
问题出在^M,原因是脚本文件的编码格式是dos,有可能是我在window下编辑完了直接传到linux的结果,可以在vim中输入以下命令确认编码格式:set ff //可以看到dos或unix的字样. 如果的确是dos格式的, 那么你可以用set ff=unix把它强制为unix格式的, 然后存...
分类:系统相关   时间:2014-05-23 12:53:37    阅读次数:507
LeetCode: Maximum Depth of Binary Tree 题解
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-05-23 11:54:10    阅读次数:317
linux下常用简写命令的全称
/bin = BINaries/dev = DEVices/etc = ETCetera 附加物或 EdiTable Configure file 配置文件/proc = PROCesses/sbin = Superuser BINaries/usr = Unix Shared Resourcesa...
分类:系统相关   时间:2014-05-23 11:13:38    阅读次数:453
Linux下Tomcat重新启动
原文链接:http://www.cnblogs.com/tovep/articles/2473147.htmlLinux下Tomcat重新启动在Linux系统下,重启Tomcat使用命令操作的!首先,进入Tomcat下的bin目录cd /usr/local/tomcat/bin使用Tomcat关闭命...
分类:系统相关   时间:2014-05-23 10:22:19    阅读次数:302
RedHat 安装MySQL数据库【转】
朋友购买了阿里云的服务器,服务器上自带有CentOS操作系统,但是开发软件需要自己安装,接下来将介绍本地RedHat Linux 5.10虚拟机上搭建Mysql数据库。 一、软件准备 (1)jdk-6u32-linux-x64.bin (2)MySQL-devel-5.6.16-1.linu...
分类:数据库   时间:2014-05-23 10:10:02    阅读次数:400
leetcode -day18 Balanced Binary Tree
1、 ?? 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 subt...
分类:其他好文   时间:2014-05-23 08:19:19    阅读次数:282
EventMachine 系列之简单的服务器
EventMachine 本文主要是 EventMachine如何建一个简单的Echo服务器post_init, unbind, receive_date 方法 EchoServer 如下代码,是建立一个简单的EchoServer #!/usr/bin/env rubyrequire 'rubygems'require 'eventmachine' class Ech...
分类:其他好文   时间:2014-05-22 11:14:26    阅读次数:181
Derby数据库的安装配置及使用
Derby数据库是一个纯用Java实现的内存数据库,属于Apache的一个开源项目。由于是用Java实现的,所以可以在任何平台上运行;另外一个特点是体积小,免安装,只需要几个小jar包就可以运行了。下面说下其安装及配置 安装 1).从apache下载Derby数据库(如db-derby-10.10.1.1-bin.zip)并解压到任意目录(如:D:\Derby\db-derby-10.10.1...
分类:数据库   时间:2014-05-22 09:05:09    阅读次数:289
leetCode解题报告5道题(十)
5道题目分别是:【Largest Rectangle in Histogram】、【Minimum Path Sum】、【Jump Game】、【Jump Game II 】、【Valid Number】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录。...
分类:其他好文   时间:2014-05-21 03:05:33    阅读次数:481
数据结构-从上往下打印二叉树
题目:从上往下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印。分析:其实就是按层的遍历方式#include #include using namespace std;struct BinaryTree{ int data; BinaryTree* lchild; Bin...
分类:其他好文   时间:2014-05-20 10:13:47    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!