会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itdef
2022年4月24日
Leetcode 347. 前 K 个高频元素
摘要: 地址 https://leetcode-cn.com/problems/top-k-frequent-elements/ 给你一个整数数组 nums 和一个整数 k ,请你返回其中出现频率前 k 高的元素。你可以按 任意顺序 返回答案。 示例 1: 输入: nums = [1,1,1,2,2,3],
阅读全文
posted @ 2022-04-24 18:03 itdef
阅读(80)
评论(0)
推荐(0)
Leetcode 538. 把二叉搜索树转换为累加树
摘要: 地址 https://leetcode-cn.com/problems/convert-bst-to-greater-tree/ 给出二叉 搜索 树的根节点,该树的节点值各不相同,请你将其转换为累加树(Greater Sum Tree), 使每个节点 node 的新值等于原树中大于或等于 node.
阅读全文
posted @ 2022-04-24 17:23 itdef
阅读(55)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告