码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
剑指offer-二叉搜索树的第k个结点树-python
二叉查找树(Binary Search Tree),(又:二叉搜索树,二叉排序树)它或者是一棵空树,或者是具有下列性质的二叉树: 若它的左子树不空,则左子树上所有结点的值均小于它的根结点的值; 若它的右子树不空,则右子树上所有结点的值均大于它的根结点的值; 它的左、右子树也分别为二叉排序树。 题目描 ...
分类:编程语言   时间:2019-11-21 20:04:27    阅读次数:109
[LC] 100. Same Tree
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
Leetcode算法【114. 二叉树展开为链表】
上周通过一位小伙伴,加入了一个氛围很好的小群,人不多,但是大家保持着对知识的渴望,让我很感动。 我自己也有一个群,人数也不多,但是能真正互动起来一起学习,一起进步的,还是太少。所以,现在也在学习如何让自己成为更好的群主,带动群活跃,带动一个社群活跃,带动小伙伴们一起进步,是我的愿景。当然,也不否认现 ...
分类:编程语言   时间:2019-11-21 10:28:17    阅读次数:80
javaselenium遇到的问题和解决方法(还没试,遇到问题可以先看这里)
Firefox路径问题 firefox火狐浏览器去完成自动化测试时,代码报了如下错误: Cannot find firefox binary in PATH. mark sure firefox is installed 错误原因: firefox安装在其它路径,不是默认的安装路径 解决办法: 指定 ...
分类:编程语言   时间:2019-11-20 23:49:09    阅读次数:107
221. Maximal Square
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
[leetcode] 199. Binary Tree Right Side View
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
C#对象序列化
1.序列化和反序列化 对象序列化是将对象(比如Person对象)转换为二进制数据,反序列化是将二进制数据还原为对象,对象是稍纵即逝的,不仅程序重启,操作系统重启会造成对象的消失,就是推出函数范围等都可能造成对象的小时,序列化或者反序列化就是为了保持对象的持久化,就像用DV录像(序列化)和用播放器(反 ...
分类:Windows程序   时间:2019-11-17 18:01:04    阅读次数:120
infomation_schema基本使用
一.infomation_schema库 把 information_schema 看作是一个数据库,确切说是信息数据库。其中保存着关于MySQL服务器所维护的所有其他数据库的信息。如数据库名,数据库的表,表栏的数据类型与访问权 限等。在INFORMATION_SCHEMA中,有数个只读表。它们实际 ...
分类:其他好文   时间:2019-11-17 15:03:17    阅读次数:48
LeetCode 5264 在受污染的二叉树中查找元素 Find Elements in a Contaminated Binary Tree
地址 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
[LeetCode] 173. Binary Search Tree Iterator_Medium_tag: Binary Search Tree
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!