- 博客(7)
- 收藏
- 关注
原创 c++字符串转数字
#include#include#includeusing namespace std;double strToNum(string str){ int length=str.length(); int a=0; for(int i=0;i<length;i++) { if(str[i]!='.') a++; else break; } double r
2016-08-23 10:04:18
494
转载 CentOS安装apache,MysqL,PHP
首选yum update你的系统,升级后应该是6.6,确保一些库是最新的。阿里云的ECS用的阿里自己的源,很快。 先说apache,最新版本是2.4。 进入 http://apache.org/dyn/closer.cgi 到官网找下载包。下载链接里面提供了几个镜像,找一个.cn的点进去(国内的速度快)。比如 http://mirrors.cnnic.cn/apache/找
2016-02-18 00:03:41
232
转载 SSH连接服务器出错解决方法,
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE TH
2016-02-18 00:02:05
868
转载 CentOS安装Apache, Mysql及php
不知道你装的是什么系统,就拿比较普遍的CentOS来说吧。 首选yum update你的系统,升级后应该是6.6,确保一些库是最新的。阿里云的ECS用的阿里自己的源,很快。 先说apache,最新版本是2.4。 进入 http://apache.org/dyn/closer.cgi 到官网找下载包。下载链接里面提供了几个镜像,找一个.cn的点进去(国内的速度快)。比如 http:/
2016-02-17 23:16:23
256
转载 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 ofevery node never differ
2015-09-19 16:31:12
239
原创 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 and the nodes have the same value./** * D
2015-09-13 21:09:28
198
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人