首页
学习
活动
专区
工具
TVP
发布

架构说

专栏作者
227
文章
257523
阅读量
49
订阅数
leetcode:513. 找树左下角的值
https://leetcode-cn.com/problems/find-bottom-left-tree-value/solution/shen-du-you-xian-sou-suo-he-yan-du-you-x-9il1/ 给定一个二叉树的 根节点 root,请找出该二叉树的 最底层 最左边 节点的值
程序员小王
2022-01-20
3070
【LeetCode】数据结构与算法 最短路径
其实,8-10遍高频效果是最好的,这基本就是到另一个境界了。当然,大家没有那么多时间,3-5遍也可以去面试了。
程序员小王
2021-07-23
5630
建堆时间复杂度是o(n)
down_heapify() https://afteracademy.com/blog/operations-on-heaps book上用法
程序员小王
2021-06-25
1.9K0
958. 二叉树的完全性检验
输入:[1,2,3,4,5,null,7] 输出:false 解释:值为 7 的结点没有尽可能靠向左侧
程序员小王
2020-07-14
4520
头条后台开发面经
算法:给出[[1, 2], [3, 5], [8, 8], [15, 16], [32, 38]],求间隔
程序员小王
2019-10-22
6630
leetcode第 132 场周赛
时间复杂度:O(n^2) 有那个N个元素,每个元素计算N次。 空间复杂度:O(n)
程序员小王
2019-05-07
5160
二叉树的递归遍历
百度百科中最近公共祖先的定义为:“对于有根树 T 的两个结点 p、q,最近公共祖先表示为一个结点 x,满足 x 是 p、q 的祖先且 x 的深度尽可能大(一个节点也可以是它自己的祖先)。”
程序员小王
2019-05-05
5110
leetcode第513题-找树左下角的值
Given a binary tree, find the left most value in the last row of the tree.
程序员小王
2019-03-06
5680
[LeetCode] Symmetric Tree
1、题目名称 Symmetric Tree https://leetcode.com/problems/symmetric-tree/ 2、题目内容 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 B
程序员小王
2018-04-13
6760
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档