二叉查找树(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
上周通过一位小伙伴,加入了一个氛围很好的小群,人不多,但是大家保持着对知识的渴望,让我很感动。 我自己也有一个群,人数也不多,但是能真正互动起来一起学习,一起进步的,还是太少。所以,现在也在学习如何让自己成为更好的群主,带动群活跃,带动一个社群活跃,带动小伙伴们一起进步,是我的愿景。当然,也不否认现 ...
分类:
编程语言 时间:
2019-11-21 10:28:17
阅读次数:
80
Firefox路径问题 firefox火狐浏览器去完成自动化测试时,代码报了如下错误: Cannot find firefox binary in PATH. mark sure firefox is installed 错误原因: firefox安装在其它路径,不是默认的安装路径 解决办法: 指定 ...
分类:
编程语言 时间:
2019-11-20 23:49:09
阅读次数:
107
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 ...
分类:
其他好文 时间:
2019-11-20 12:37:11
阅读次数:
65
Medium Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. ...
分类:
其他好文 时间:
2019-11-18 11:23:03
阅读次数:
72
1.序列化和反序列化 对象序列化是将对象(比如Person对象)转换为二进制数据,反序列化是将二进制数据还原为对象,对象是稍纵即逝的,不仅程序重启,操作系统重启会造成对象的消失,就是推出函数范围等都可能造成对象的小时,序列化或者反序列化就是为了保持对象的持久化,就像用DV录像(序列化)和用播放器(反 ...
一.infomation_schema库 把 information_schema 看作是一个数据库,确切说是信息数据库。其中保存着关于MySQL服务器所维护的所有其他数据库的信息。如数据库名,数据库的表,表栏的数据类型与访问权 限等。在INFORMATION_SCHEMA中,有数个只读表。它们实际 ...
分类:
其他好文 时间:
2019-11-17 15:03:17
阅读次数:
48
地址 https://leetcode-cn.com/contest/weekly-contest-163/problems/find-elements-in-a-contaminated-binary-tree/ 题目描述给出一个满足下述规则的二叉树: root.val == 0如果 treeNo ...
分类:
其他好文 时间:
2019-11-17 14:53:34
阅读次数:
59
mplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the ne ...
分类:
其他好文 时间:
2019-11-17 01:45:19
阅读次数:
59