01 树 在计算机科学中,树(英语:tree)是一种抽象数据类型(ADT)或是实现这种抽象数据类型的数据结构,用来模拟具有树状结构性质的数据集合。它是由n(n>0)个有限节点组成一个具有层次关系的集合。把它叫做“树”是因为它看起来像一棵倒挂的树,也就是说它是根朝上,而叶朝下的。它具有以下的特点: 1 ...
分类:
其他好文 时间:
2020-02-26 19:06:54
阅读次数:
91
原文作者:aircraft 原文链接:https://www.cnblogs.com/DOMLX/p/12368154.html 一.下载OpenCASCADE 官网下载是: http://www.opencascade.org/getocc/download/loadocc/ 我的百度云已经下载好 ...
分类:
编程语言 时间:
2020-02-26 18:49:59
阅读次数:
106
参考 https://developer.android.com/topic/libraries/architecture/viewmodel 官方例子 https://github.com/android/architecture-components-samples/tree/master/Ba ...
分类:
其他好文 时间:
2020-02-26 18:31:23
阅读次数:
72
import os def local_rm(dirpath): if os.path.exists(dirpath): files = os.listdir(dirpath) for file in files: filepath = os.path.join(dirpath, file).rep ...
分类:
编程语言 时间:
2020-02-26 17:02:13
阅读次数:
82
近期根据需求,要做一个懒加载的组织树,并且可以编辑组织树。但是编辑了之后无法进行实时更新。 一开始想到了很多解决方案,也在网上参考了很多方案,但是都又种种不足。 所以我去看了elementUI的tree组件的懒加载方法的源代码 Node.prototype.loadData = function l ...
分类:
其他好文 时间:
2020-02-26 16:52:07
阅读次数:
105
https://leetcode-cn.com/problems/n-ary-tree-preorder-traversal/submissions/ 常规解法: 递归实现,迭代实现 111. Minimum Depth of Binary Tree class Solution { public ...
分类:
其他好文 时间:
2020-02-26 01:16:19
阅读次数:
91
1 // Definition for a binary tree node. 2 // #[derive(Debug, PartialEq, Eq)] 3 // pub struct TreeNode { 4 // pub val: i32, 5 // pub left: Option<Rc<Re ...
分类:
其他好文 时间:
2020-02-26 01:06:15
阅读次数:
100
"题目链接" 这明摆着是一道计数题,计数题能用些啥?dp?我不会拦你的。多项式?生成函数?没错,这道题就是生成函数。 不能难发现,深度=祖先数+1,而$i$是$j$的祖先,当且仅当对任意在$i$和$j$之间的整数$k$,均满足$a_ij)\end{cases} $$ 方法:考虑先往序列里面插入所有下 ...
分类:
其他好文 时间:
2020-02-25 23:15:12
阅读次数:
81
驱逐管理是kubelet自我保护的一种机制,当资源缺乏的时候,通过阈值和策略主动驱逐部分的Pod从而保持系统的资源水位在一个合理的范围内,本身的策略官方文档上已经写的很详细,今天只是看下其在代码上的一些设计
分类:
Web程序 时间:
2020-02-25 19:54:59
阅读次数:
74
一.损失函数的使用 损失函数【也称目标函数或优化评分函数】是编译模型时所需的两个参数之一。 model.compile(loss='mean_squared_error', optimizer='sgd') 或 from keras import losses model.compile(loss= ...
分类:
其他好文 时间:
2020-02-25 17:58:18
阅读次数:
100