安装软件的方式: 源码安装 (Nginx,redis等) rpm(redhat package manager)包安装 (mysql等) yum安装(需要联网) binary类型软件安装(这种类型的软件,首先从官网下载到本地,然后解压即可使用,例如jdk,tomcat) jdk安装: tomcat安 ...
分类:
数据库 时间:
2018-07-23 20:51:02
阅读次数:
260
import java.util.*; /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x)... ...
分类:
其他好文 时间:
2018-07-23 19:55:04
阅读次数:
184
1、十进制转换为二进制 Objective C / 十进制转换为二进制 @param decimal 十进制数 @return 二进制数 / + (NSString )getBinaryByDecimal:(NSInteger)decimal { NSString binary = @""; whi ...
分类:
移动开发 时间:
2018-07-23 12:42:01
阅读次数:
274
题目不难,被第二题卡了半个多小时QAQ,另一个就是以后能用Hashmap和Hashset的绝不遍历。 1. Leaf-Similar Trees dfs、层次遍历把叶子节点遍历然后对比即可,只要是先遍历左节点后遍历右节点就行。 874. Walking Robot Simulation 被这题卡了好 ...
分类:
其他好文 时间:
2018-07-22 21:16:38
阅读次数:
572
Some people are standing in a row in a park. There are trees between them which cannot be moved. Your task is to rearrange the people by their heights ...
分类:
其他好文 时间:
2018-07-22 20:45:31
阅读次数:
211
二分查找法:一种在有序数组中查找特定元素的搜索算法。 算法描述: (1)首先,从有序数组的中间的元素开始搜索,如果该元素正好是目标元素(即要查找的元素),则搜索过程结束,否则进行下一步。(2)如果目标元素大于或者小于中间元素,则在数组大于或小于中间元素的那一半区域查找,然后重复第一步的操作。(3)如 ...
分类:
其他好文 时间:
2018-07-22 18:46:45
阅读次数:
172
问题描述: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set t ...
分类:
其他好文 时间:
2018-07-22 11:33:29
阅读次数:
128
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), r... ...
分类:
其他好文 时间:
2018-07-22 11:32:49
阅读次数:
193
问题描述: Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some starting node ...
分类:
其他好文 时间:
2018-07-22 11:19:50
阅读次数:
166
问题描述: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set t ...
分类:
其他好文 时间:
2018-07-22 11:10:36
阅读次数:
151