bin --(/usr/bin,/usr/local/bin)Binary缩写,这个目录存放经常使用的命令 sbin --(/urs/sbin,/usr/local/sbin)s系Super User,存放系统管理员使用的系统管理程序 boot --存放启动Linux时使用的一些核心文件,包括一些连 ...
分类:
系统相关 时间:
2020-04-03 23:59:46
阅读次数:
142
面试题37. 序列化二叉树 请实现两个函数,分别用来序列化和反序列化二叉树。 示例: 你可以将以下二叉树: 1 / \ 2 3 / \ 4 5 序列化为 "[1,2,3,null,null,4,5]" /** * Definition for a binary tree node. * public ...
分类:
其他好文 时间:
2020-04-03 22:09:27
阅读次数:
66
详解二叉查找树(BST) 本篇随笔简单讲解一下数据结构——二叉查找树($Binary\,\,Sort\,\,Tree,BST$),(后文的“二叉查找树”一词均用$BST$代替)。 BST的概念 首先,$BST$是一棵二叉树。 它的定义是,根节点左子树全部 严格小于 根节点,右子树 大于等于 根节点, ...
分类:
其他好文 时间:
2020-04-03 20:06:24
阅读次数:
61
2020-04-03 路径总和 题解: 思路1: 递归 /** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } ...
分类:
其他好文 时间:
2020-04-03 13:53:34
阅读次数:
54
题面 CF438E 解析 一开始又把题读错了... 设$g_i=1/0$表示数$i$是否在$c$中出现过,$f_i$表示权值和为$i$的二叉树个数,有下式:$$f_i=\sum_{j=1}^{m}g_j\sum_{k=0}^{i-j}f_k f_{i-j-k}$$ 设$F(x)=\sum_{i=0} ...
分类:
其他好文 时间:
2020-04-03 13:41:37
阅读次数:
61
Binary Classification Notation used in this course Logistic Regression Sigmoid函数:$\displaystyle \sigma(z) = \frac{1}{1+e^{ z}}$ practice: 总结: y是概率,通过y ...
分类:
其他好文 时间:
2020-04-03 12:13:34
阅读次数:
66
平衡二叉搜索树(Balanced Binary Search Tree) 经典常见的自平衡的二叉搜索树(Self-balancing Binary Search Tree)有 ① AVL树 :Windows NT 内核中广泛使用 ② 红黑树:C++ STL(比如 map、set )Java 的 Tr ...
分类:
其他好文 时间:
2020-04-03 11:55:39
阅读次数:
71
https://leetcode cn.com/problems/minimum number of flips to convert binary matrix to zero matrix/ DFS ...
分类:
其他好文 时间:
2020-04-02 22:23:49
阅读次数:
83
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), ...
分类:
其他好文 时间:
2020-04-02 19:58:42
阅读次数:
112
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), ...
分类:
其他好文 时间:
2020-04-02 19:39:30
阅读次数:
46