二叉树的最大路径和。题意是给一个二叉树,节点是数字,请输出一个最大的路径和。例子, Example 1: Input: [1,2,3] 1 / \ 2 3 Output: 6 Example 2: Input: [-10,9,20,null,null,15,7] -10 / \ 9 20 / \ 1 ...
分类:
其他好文 时间:
2020-03-18 15:15:37
阅读次数:
58
单个进程的example 1 #!/bin/bash 2 start_time=`date "+%s"` 3 echo "start_time is $start_time" 4 for((i=1;i<=4;i++)) 5 do 6 echo success $i;sleep 2 7 done 8 ...
分类:
系统相关 时间:
2020-03-18 13:23:44
阅读次数:
82
最长同值路径。题意是给一个二叉树,请输出一个最长的同值路径的长度。例子, Example 1: Input: 5 / \ 4 5 / \ \ 1 1 5 Output: 2 Example 2: Input: 1 / \ 4 5 / \ \ 4 4 5 Output: 2 思路是后序遍历,可参考25 ...
分类:
其他好文 时间:
2020-03-18 09:19:03
阅读次数:
57
ESRIwiki文档:https://github.com/esri/arcgis-pro-sdk/wiki#requirements ArcGIS Pro帮助文档:http://pro.arcgis.com/zh-cn/pro-app/sdk/ ArcGIS Pro API参考:http://pr ...
分类:
其他好文 时间:
2020-03-17 14:05:31
阅读次数:
66
Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2; = 2 x 4. Write a function that takes an integer n and return all possib ...
分类:
其他好文 时间:
2020-03-17 10:23:21
阅读次数:
66
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. Example 1: Input: ...
分类:
其他好文 时间:
2020-03-16 23:35:41
阅读次数:
72
nginx会话保持主要有以下几种实现方式。 1、ip_hash ip_hash使用源地址哈希算法,将同一客户端的请求总是发往同一个后端服务器,除非该服务器不可用。 ip_hash语法: upstream backend { ip_hash; server backend1.example.com; ...
分类:
其他好文 时间:
2020-03-16 17:41:14
阅读次数:
66
684. 缺少的字符串 中文English 给出两个字符串,你需要找到缺少的字符串 样例 样例 1: 输入 : str1 = "This is an example", str2 = "is example" 输出 : ["This", "an"] 注意事项 输出时字符串顺序为输入字符串内的顺序 c ...
分类:
其他好文 时间:
2020-03-16 12:26:23
阅读次数:
80
下一个更大的元素III。版本三其实跟前两个版本几乎没什么关系,是一道找next permutation的题。题意是给一个整数,请找出Integer范围内用到相同数字但是比当前数字大的数字。例子, Example 1: Input: 12 Output: 21 Example 2: Input: 21 ...
分类:
其他好文 时间:
2020-03-16 09:26:43
阅读次数:
36
python decorator is a crucial(vital,signifiant) process. decorator mail two category 1:principal function no arguments(parameters): for example: princ ...
分类:
编程语言 时间:
2020-03-15 22:19:20
阅读次数:
57