Linux系统目录结构 1. /bin:bin是Binary的缩写,该目录下存放的是最常用的命令; 2. /boot: 该目录下存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文件; 3. /dev: 4. /etc: 5. /home: 6. /lib和lib64 7. /me ...
分类:
系统相关 时间:
2018-12-04 13:14:29
阅读次数:
201
本文目录 前两篇文章我们学习了一些树的基本概念以及常用操作,本篇我们了解一下二叉树的一种特殊形式:二叉排序树(Binary Sort Tree),又称二叉查找树(Binary Search Tree),亦称二叉搜索树。 一、二叉排序树定义 二叉排序树或者是一颗空树,或者是具有下列性质的二叉树: 若它 ...
分类:
移动开发 时间:
2018-12-04 13:08:10
阅读次数:
227
563. Binary Tree Tilt 566. Reshape the Matrix 572. Subtree of Another Tree 581. Shortest Unsorted Continuous Subarray ...
分类:
其他好文 时间:
2018-12-04 10:12:53
阅读次数:
175
A binary watch has 4 LEDs on the top which represent the hours (0 11), and the 6 LEDs on the bottom represent the minutes (0 59). Each LED represents ...
分类:
其他好文 时间:
2018-12-03 23:03:40
阅读次数:
202
三元表达式# x if x > y else y ##如果x大于y,值返回左边,不然则返回右边 #用一行代码表达一个函数需要做的事情,使代码更简洁 # 例1,# res='x' if True else 'y'# print(res)迭代器 # 1. 什么是迭代器# 什么是迭代?# 迭代是一个重复的 ...
分类:
其他好文 时间:
2018-12-03 19:51:30
阅读次数:
213
内网主机上安装了Oracle数据库,只能在局域网内访问,怎样从公网也能访问本地Oracle数据库?
本文将介绍使用holer实现的具体步骤。
分类:
数据库 时间:
2018-12-03 01:16:11
阅读次数:
170
大O表示法是用来表示一个算法在最糟糕情况下的运行时间。需要注意的是算法运行时间并不以秒为单位并且是从其增速的角度度量的。 下面是5个常见的大O运行时间 ? O(log n), also known as log time. Example: Binary search. ? O(n), also k ...
分类:
其他好文 时间:
2018-12-03 01:08:03
阅读次数:
546
假设函数: 更为一般的表达式: (1) 似然函数: (2) 对数似然函数: 如果以上式作为目标函数,就需要最大化对数似然函数,我们这里选择最小化负的对数似然函数 (3) 对J(w)求极小值,对求导 (4) 上述中 表示第i个样本的第j个属性的取值。 于是的更新方式为: (5) 将(5)式带入(4)式 ...
分类:
编程语言 时间:
2018-12-03 01:01:55
阅读次数:
1561
For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is flip e ...
分类:
其他好文 时间:
2018-12-02 22:51:17
阅读次数:
243
19. Remove Nth Node From End of List minimum-depth-of-binary-tree Given a binary tree, find its minimum depth.The minimum depth is the number of nodes ...
分类:
其他好文 时间:
2018-12-02 14:21:25
阅读次数:
137