问题描述:
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys
less than the node'...
分类:
其他好文 时间:
2015-01-14 22:53:40
阅读次数:
179
ssh-keygen 产生公钥与私钥对.ssh-copy-id将本机的公钥复制到远程机器的authorized_keys文件中,ssh-copy-id也能让你有到远程机器的home, ~./ssh , 和 ~/.ssh/authorized_keys的权利第一步:在本地机器上使用ssh-keygen...
分类:
其他好文 时间:
2015-01-14 17:53:05
阅读次数:
286
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:
其他好文 时间:
2015-01-14 09:52:48
阅读次数:
161
(http://leetcode.com/2011/01/ctrla-ctrlc-ctrlv.html)Imagine you have a special keyboard with the following keys:ACtrl + ACtrl + CCtrl + Vwhere CTRL+A,...
分类:
其他好文 时间:
2015-01-13 19:39:45
阅读次数:
197
ssh-keygen 创建公钥和密钥。 ssh-copy-id 把本地主机的公钥复制到远程主机的authorized_keys文件上。ssh-copy-id 也会给远程主机的用户主目录(home)和~/.ssh, 和~/.ssh/authorized_keys设置合适的权限 。步骤1: 用 ssh....
分类:
其他好文 时间:
2015-01-13 17:29:12
阅读次数:
177
http://sofar.blog.51cto.com/353572/1579894先做免密码登录,有几台机器就scp几次公钥ssh-keygen -t rsa -P ''scp id_rsa.pub 192.168.2.84:/root/.ssh/authorized_keys[root@084-...
分类:
系统相关 时间:
2015-01-12 19:09:12
阅读次数:
300
使用Dockerfile方法前期准备工作#mkdirsshd_ubuntu创建工作目录#cdsshd_ubuntu#touchDockerfilerun.sh创建一会需要拷贝到container的文件#virun.shrun.sh的内容#!/bin/bash/usr/sbin/sshd–D#cat~/.ssh/id_rsa.pub>authorized_keys拷贝需要登录到container的机器的公钥编写..
分类:
其他好文 时间:
2015-01-12 11:10:06
阅读次数:
183
Pat1086代码
题目描述:
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6...
分类:
其他好文 时间:
2015-01-09 23:45:43
阅读次数:
201
这篇文章主要讲述简易的GIT服务器环境搭建,环境是CentOS6.4。authorized_keys
1. 安装GIT
这边比较简单的方法就是通过yum的方式安装
sudo yum install git
2. 创建一个git用户
useradd git -d /home/git
passwd git
/home/git为服务端版本存储的目录地址。这个时候就可以通过git这个账...
分类:
系统相关 时间:
2015-01-08 17:56:16
阅读次数:
224
KeyDown,KeyPress和KeyUp详解 Windows窗体通过引发键盘事件来处理键盘输入以响应Windows消息,大多数Windows窗体应用程序都通过处理键盘事件来以独占方式处理键盘输入。1.按键的类型 Windows窗体将键盘输入标识为由按位Keys枚举表示的虚拟键代码。使用Key.....
分类:
其他好文 时间:
2015-01-08 15:01:56
阅读次数:
282