似懂非懂。。 class Solution: def diameterOfBinaryTree(self, root: TreeNode) -> int: self.ans=1 def depth(node): if not node: return 0 L=depth(node.left) R=d ...
分类:
其他好文 时间:
2019-11-22 23:33:47
阅读次数:
75
using System;using System.Collections.Generic;using System.Collections;using System.IO;using System.Runtime.Serialization.Formatters.Binary;using Syst ...
C盘要满了,用WizTree发现;;两个大文件, ①睡眠有关的,用命令提示符(管理员身份运行), 命令窗口中输入 powercfg -h off,即可关闭休眠功能,同时 Hiberfil.sys 文件也会自动删除。 开启休眠功能:在cmd 命令窗口中输入 powercfg -h on ,就能开启休眠 ...
在oracle中有一个特殊的字段类型Blob,Blob是指二进制大对象也就是英文Binary Large Object的缩写; 通过sql取出后,需要进行特殊处理。而我是这样玩的: 1.通过sql查询出来,是一个map,先用MapUtils.getObject将Blob字段强转成Byte,最后将ne ...
分类:
其他好文 时间:
2019-11-22 13:27:57
阅读次数:
72
一、简单介绍一下MemoryStream MemoryStream是内存流,为系统内存提供读写操作,由于MemoryStream是通过无符号字节数组组成的,可以说MemoryStream的性能可以算比较出色,所以它担当起了一些其他流进行数据交互安时的中间工作,同时可降低应用程序中对临时缓冲区和临时文 ...
分类:
其他好文 时间:
2019-11-22 10:36:12
阅读次数:
86
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...
分类:
其他好文 时间:
2019-11-22 01:25:09
阅读次数:
92
Linux系统的启动过程 BIOS——LILO/GRUB(引导)——Kernel boot(内核)——init(运行级别)——界mingetty(界面)——Shell(Linux可以使用) 运行级别 运行级别有7个 init 0 关机 init 3:完全多用户模式,即多用户文本界面模式,是标准的运行 ...
分类:
系统相关 时间:
2019-11-21 23:19:30
阅读次数:
166
1:数据源 Hollywood Movie Dataset: 好莱坞2006-2011数据集 实验目的: 实现 统计2006-2011的数据综合统计情况,进行数据可视化 gitee地址: https://gitee.com/dgwcode/an_example_of_py_learning/tree ...
分类:
其他好文 时间:
2019-11-21 22:35:01
阅读次数:
100
二叉查找树(Binary Search Tree),(又:二叉搜索树,二叉排序树)它或者是一棵空树,或者是具有下列性质的二叉树: 若它的左子树不空,则左子树上所有结点的值均小于它的根结点的值; 若它的右子树不空,则右子树上所有结点的值均大于它的根结点的值; 它的左、右子树也分别为二叉排序树。 题目描 ...
分类:
编程语言 时间:
2019-11-21 20:04:27
阅读次数:
109
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident ...
分类:
其他好文 时间:
2019-11-21 14:07:49
阅读次数:
48