Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 whic ...
分类:
其他好文 时间:
2019-12-12 13:14:24
阅读次数:
93
使用客户端链接MongoDb报错 The GuidRepresentation for the reader is CSharpLegacy, which requires the binary sub type to be UuidLegacy, not UuidStan。 百度了一下,可能是No ...
分类:
其他好文 时间:
2019-12-12 01:11:53
阅读次数:
85
题目如下: Given a m x n binary matrix mat. In one step, you can choose one cell and flip it and all the four neighbours of it if they exist (Flip is chang ...
分类:
其他好文 时间:
2019-12-11 23:37:50
阅读次数:
142
二叉树(Binary Search Trees)
二叉树是每个结点最多有两个子树的树结构。通常子树被称作“左子树”(Left Subtree)和“右子树”(Right Subtree)。二叉树常被用于实现二叉查找树和二叉堆。
分类:
数据库 时间:
2019-12-11 21:23:51
阅读次数:
88
二叉树(Binary Tree) 树 根节点、父节点、兄弟节点、叶子节点 高度、深度、层的概念 高度、深度、层的概念 二叉树 顾名思义,每个节点最多有两个“叉”,也就是两个子节点,分别是左子节点和右子节点,并不要求都要有二个节点,有的只有左节点,有的只有右节点 满二叉树 图中编号2的二叉树,叶子节点 ...
分类:
编程语言 时间:
2019-12-11 19:32:39
阅读次数:
78
所谓的序列化其实就是把一个内存中的对象信息转化成一个可以持久化保存的形式,方便保存数据库和文件或着用于传输, 序列化的主要作用是不同平台之间进行通信与信息的传递保存等,常用的有序列化有Json Xml Binary Soap JavaScript序列化等,当然我们也可以使用第三方的序列化类库,第三方 ...
分类:
编程语言 时间:
2019-12-11 17:04:35
阅读次数:
95
81. Search in Rotated Sorted Array II 如果中间的数小于最右边的数,则右半段是有序的,若中间数大于最右边数,则左半段是有序的。而如果可以有重复值,就会出现来面两种情况,[3 1 1] 和 [1 1 3 1],对于这两种情况中间值等于最右值时,目标值3既可以在左边又 ...
分类:
其他好文 时间:
2019-12-11 13:14:34
阅读次数:
92
package testpacknm; import java.util.Scanner; public class testcnm { public static void main(String[] args) { int dNum = 5; System.out.println("Binary... ...
分类:
其他好文 时间:
2019-12-10 13:32:52
阅读次数:
84
public class Solution { public static void main(String[] args) { int dNum = 1264; String str = ""; while (dNum > 0) { int rem = dNum % 2; str = rem + ... ...
分类:
其他好文 时间:
2019-12-10 12:59:58
阅读次数:
65
# dir()函数不带参数时,返回当前范围内的变量、方法和定义的类型列表;带参数时,返回参数的属性、方法列表# import os# print(dir(os))'''['DirEntry', 'F_OK', 'MutableMapping', 'O_APPEND', 'O_BINARY', 'O_ ...
分类:
其他好文 时间:
2019-12-09 21:14:12
阅读次数:
89