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 ...
分类:
其他好文 时间:
2020-01-21 13:21:50
阅读次数:
88
0. 1. std::shared_ptr is a smart pointer that retains shared ownership of an object through a pointer. Several shared_ptr objects may own the same obj ...
分类:
编程语言 时间:
2020-01-21 00:40:14
阅读次数:
103
--已有主键 --需要增加约束,多个字段不能完全一直 alter table WmsStorageInOrder add constraint PK_Joint_WmsStorageInOrder unique(Deleted,ErpNumber,ClientCode,WarehouseCode) ...
分类:
数据库 时间:
2020-01-20 20:36:42
阅读次数:
88
public int[] sumZero(int n) { int [] Array= new int[n]; int sum=0; //前n-1个数之和 for(int i=0;i<Array.length-1;i++) { Array[i] = i; sum+=i; } Array[Array. ...
分类:
其他好文 时间:
2020-01-17 23:15:57
阅读次数:
80
kotlin 函数入口 以下就可以作为一个入口: 但是,写了很久的java,有些不习惯,怎么与java类似?如下: 注意一下,fun main(args: Array) 必须要参数,但是在1.3的版本之后就可以不需要了。之前的话,就不会是入口了。 ...
分类:
其他好文 时间:
2020-01-16 23:50:57
阅读次数:
100
1.not null和default # sex字段不可为空,默认值为'男' create table t2( id int, name char(10), sex enum('男','女') not null default '男' ); 2.unique key # id和name字段中的值不可 ...
分类:
数据库 时间:
2020-01-16 23:46:48
阅读次数:
112
Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: n = 5 Output: [-7,-1,1,3,4] Explanatio ...
分类:
其他好文 时间:
2020-01-16 14:19:16
阅读次数:
90
1.唯一化以及其他的集合逻辑 Numpy提供了一些针对一维ndarray的基本集合运算.最常用的可能要数np.unique了,它用于找出数组中的唯一值并返回已排序的结果: 数组的集合运算: ...
分类:
其他好文 时间:
2020-01-15 14:08:43
阅读次数:
78
Address "loj3112" "luogu P5360" "bzoj5531" Solution 对于 $1\leq i\leq m$,考虑分别预处理经度在 $[1,i]$,$[i,m]$ 的点的 $\text{MST}$。询问的时候合并 $[1,l 1]$ 和 $[r+1,m]$ 即可。 先 ...
分类:
其他好文 时间:
2020-01-15 13:50:04
阅读次数:
96
总结有关服务器的各项性能指标,以及如何判断服务器的性能状况出现问题,性能指标代表的含义。同时也总结Linux服务器上有关工具的各项参数含义,以及日常需要注意的参数信息。
分类:
系统相关 时间:
2020-01-14 11:32:28
阅读次数:
124