树,什么是树? 树是一种数据结构,它是由n(n>=1)个有限节点组成一个具有层次关系的集合。把它叫做“树”是因为它看起来像一棵倒挂的树,也就是说它是根朝上,而叶朝下的。它具有以下的特点:每个节点有零个或多个子节点;没有父节点的节点称为根节点;每一个非根节点有且只有一个父节点;除了根节点外,每个子节点 ...
分类:
其他 时间:
2021-04-30 15:35:11
收藏:
0 评论:
0 赞:
0 阅读:
20
1、Docker安装 docker-ce-cli下载地址: https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce-cli_19.03.15~3-0~ub ...
分类:
其他 时间:
2021-04-30 15:35:01
收藏:
0 评论:
0 赞:
0 阅读:
15
{ "name": "electron-quick-start", "version": "1.0.0", "description": "A minimal Electron application", "main": "main.js", "scripts": { "start": "elect ...
分类:
其他 时间:
2021-04-30 15:34:00
收藏:
0 评论:
0 赞:
0 阅读:
390
控制台显示 public static string DrawTree<T>(this BinaryTreeBase<T> tree) where T : IComparable<T> { return string.Join("\n", RecursivelyDrawTree(tree.Root, ...
分类:
其他 时间:
2021-04-30 15:33:08
收藏:
0 评论:
0 赞:
0 阅读:
14
##树与二叉树思维导图: ##重要概念: ###(一)线索化二叉树: 为什么要对二叉树进行线索化? 对二叉树进行遍历是以一定的规则将二叉树的节点排列成一个线性序列,这些线性序列有且仅有一个直接前驱和直接后继, 但是以二叉链表进行存储的时候,只能找到节点的左右孩子信息,不能直接得到节点在任一序列的前驱 ...
分类:
其他 时间:
2021-04-30 15:31:33
收藏:
0 评论:
0 赞:
0 阅读:
24
这是分布式系统中一个很实际的问题,书上说的不是很详细,整理总结一下。 1、脑裂和假死 1.1 脑裂官方定义:当一个集群的不同部分在同一时间都认为自己是活动的时候,我们就可以将这个现象称为脑裂症状。通俗的说,就是比如当你的 cluster 里面有两个结点,它们都知道在这个 cluster 里需要选举出 ...
分类:
其他 时间:
2021-04-30 15:31:04
收藏:
0 评论:
0 赞:
0 阅读:
23
<h2 style="color: red;">CatPhotoApp</h2> 请注意行内style最好以;来结束。 当我们只需要改变元素的某个样式时,行内样式最简单直观。当我们需要同时改变元素的很多样式时,层叠样式表往往是一个更好的选择。 <style></style> 这个是元素选择器 ...
分类:
其他 时间:
2021-04-30 15:30:01
收藏:
0 评论:
0 赞:
0 阅读:
11
SmartChart的Git地址:https://gitee.com/smartchart/smartchart 在这里我只能说一句话 SmartChart开发团队真厉害 配合Django来使用SmartChart 安装smartchart,Python版本>=3.6,Django>=2.0 Sma ...
分类:
其他 时间:
2021-04-30 15:29:20
收藏:
0 评论:
0 赞:
0 阅读:
153
1、右键 .asm 文件,点击“属性”。 2、在项类型里选择“自定义生成工具”。 3、点击应用,然后点击左边“自定义生成工具”里的“常规”。 4、在“命令行”里输入 ml64 /Fo $(IntDir)%(fileName).obj /c %(fileName).asm 在“输出”里输入 $(Int ...
分类:
其他 时间:
2021-04-30 15:28:55
收藏:
0 评论:
0 赞:
0 阅读:
18
link。 简单转化问题:求所有 \(x \in [1, \lfloor R / B\rfloor]\) 对应的合法方案数之和。 对于某一 \(x\),枚举左边的红蓝球数量,可得: \[ \begin{aligned} ans_x =& \sum_{b = 0}^{B}\sum_{r = bx}^{ ...
分类:
其他 时间:
2021-04-30 15:28:14
收藏:
0 评论:
0 赞:
0 阅读:
15
1.安装pyqt5 sudo apt-get install pyqt5* 2.安装QT5开发工具,里面包含了Qt Designer等工具 sudo apt-get install qttools5-dev-tools 3.打开vscode,搜索pyqt,安装PYQT Integration插件 4 ...
分类:
其他 时间:
2021-04-30 15:27:46
收藏:
0 评论:
0 赞:
0 阅读:
27
You are given two integer arrays a and b of length n. You can reverse at most one subarray (continuous subsegment) of the array 𝑎a. Your task is to r ...
分类:
其他 时间:
2021-04-30 15:27:24
收藏:
0 评论:
0 赞:
0 阅读:
17
IDEA | 快捷键 | 说明 | | | | | | 下个断点 | F9 | | 下一行代码 | F8 | | 进入当前方法 | F7 | | 退出当前方法 | shift + F8 | | 运行到光标处 | alt + F9 | eclipse | 快捷键 | 说明 | | | | | | 下个 ...
分类:
其他 时间:
2021-04-30 15:27:08
收藏:
0 评论:
0 赞:
0 阅读:
16
kendo-ui的treeView节点(node)点击时 可以触发一个select的事件(event),并且连续点击多次相同节点,可以触发并且只能触发一次该事件。 可是需求上需要实现:每次点击相同的节点,都要触发该select事件。 这个需求,是和kendo的select事件相悖的。 最开始想通过 ...
分类:
其他 时间:
2021-04-30 15:26:56
收藏:
0 评论:
0 赞:
0 阅读:
15
SuperSocket:GitHub,SuperSocket 2.0 中文文档。 本文开发环境:Win10 + VS2019 + .NetCore 3.1 + SuperSocket 2.0.0-beta.8。 Gitee:SuperSocketV2FixedHeaderSample。 本文使用Su ...
分类:
其他 时间:
2021-04-30 15:26:45
收藏:
0 评论:
0 赞:
0 阅读:
48
Introduction to Go Modules – Roberto Selbach https://roberto.selbach.dev/intro-to-go-modules/ go mod使用 - 简书 https://www.jianshu.com/p/760c97ff644c 一个包 ...
分类:
其他 时间:
2021-04-30 15:26:37
收藏:
0 评论:
0 赞:
0 阅读:
33
1、自己创建一个2维线性回归数据集 import torch from matplotlib import pyplot as plt import random import traceback # create data def create_data(W, b, num): X = torch ...
分类:
其他 时间:
2021-04-30 15:26:04
收藏:
0 评论:
0 赞:
0 阅读:
22
1、查询组件状态 kubectl get componentstatuses 2、查看namespace(命名空间) kubectl get namespaces ...
分类:
其他 时间:
2021-04-30 15:25:07
收藏:
0 评论:
0 赞:
0 阅读:
10
1 package com.pingfan.array; 2 3 import java.util.Arrays; 4 5 public class ArrayDemo6 { 6 public static void main(String[] args) { 7 int[] a = {1,2,3, ...
分类:
其他 时间:
2021-04-30 15:22:42
收藏:
0 评论:
0 赞:
0 阅读:
12
常用 __builtin_ffs(x) 返回x的最后一位1是从后向前第几位 __builtin_popcount(x) 返回x的二进制下1的个数 x&-x 只保留最后一位1的二进制 x = x & (x - 1) 清零最低位的1 x & 1 判断奇偶 x |= 1 << n 将第n位置1 x &= ...
分类:
其他 时间:
2021-04-30 15:22:05
收藏:
0 评论:
0 赞:
0 阅读:
12