实体类: public class Project { public Project() { children = new List<Project>(); } public int id { get; set; } public int parentId { get; set; } public ...
vector<int>binary2Vectorint(CBinarycSrc){//CBinary转stringstringstrCmd=BinToText(cSrC,"%.2x","");//16进制字符串转为2进制整型vector<int>iCmd;for(inti=0;i<strCmd.size();i++){charbTemp=bCmd.at(i);inti
分类:
其他好文 时间:
2020-09-18 00:25:28
阅读次数:
24
给出一个序列,m个查询,每次查询区间是否是$[1, r - l + 1]$的排列 判断是否是排列: 即每个数字只出现一次 区间和是$\frac{n * (n + 1)}{2}$,n是区间长度。 判断每个数字是否只出现一次,可以预处理每个数之和第一次出现这个数字的位置,如果没有那么设置为0,然后用线段 ...
分类:
其他好文 时间:
2020-09-18 00:02:53
阅读次数:
30
二叉搜索树(BST, Binary Search Tree) 1. 二叉树也是一颗二叉树, 可以为空 2. 如果不为空,则满足以下条件 1. 非空左子树的所有键值小于其根节点的键值 2. 非空右子树的所有键值大于其根节点的键值 3. 左, 右子树本身也是搜索树 3. 二叉搜索树的特点 1. 二叉搜索 ...
分类:
其他好文 时间:
2020-09-17 23:06:23
阅读次数:
31
题意:给定n个数构建完全二叉树,输出完全二叉树的层序遍历 思路:二叉树的中序遍历建树即为输出 #include<cstdio> #include<queue> #include<vector> #include<algorithm> using namespace std; const int N ...
分类:
其他好文 时间:
2020-09-17 23:04:06
阅读次数:
30
code as bellow *& * *& Include COLUMN_TREE_CONTROL_DEMOTOP * *& * *& * REPORT SAPCOLUMN_TREE_CONTROL_DEMO MESSAGE-ID TREE_CONTROL_MSG. CLASS LCL_APPLI ...
分类:
其他好文 时间:
2020-09-17 21:32:33
阅读次数:
33
Signal Waveforms with Multiple Amplitude Levels Matlab Coding, 1 % MATLAB script for the probability of a symbol error for M = 2, 4, 8, 16 2 echo on 3 ...
分类:
其他好文 时间:
2020-09-17 20:10:51
阅读次数:
28
<el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox> <el-tree :data="data" show-checkbox default-expand-all node-key="modul ...
分类:
其他好文 时间:
2020-09-17 19:26:59
阅读次数:
38
topic:ThreeSum 目标:用于统计一个数组中和为 0 的三元组数量,每个三元组都不重复 方法 方法一:最简单方法 方法二:先排序,对两元素求和,再用二分查找寻找相反数 方法三:先排序,再用左右两指针查找一个数的相反数 方法一:最简单方法 public class ThreeSumSlow ...
分类:
编程语言 时间:
2020-09-17 18:58:54
阅读次数:
29
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:41
阅读次数:
32