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

爱写Bug

公众号:爱写Bug
专栏作者
148
文章
109222
阅读量
27
订阅数
LeetCode 700: 二叉搜索树中的搜索 Search in a Binary Search Tree
给定二叉搜索树(BST)的根节点和一个值。你需要在BST中找到节点值等于给定值的节点。返回以该节点为根的子树。如果节点不存在,则返回 NULL。
爱写bug
2020-03-25
4490
LeetCode 701: 二叉搜索树中的插入操作 Insert into a Binary Search Tree
给定二叉搜索树(BST)的根节点和要插入树中的值,将值插入二叉搜索树。返回插入后二叉搜索树的根节点。保证原始二叉搜索树中不存在新值。
爱写bug
2020-03-25
9340
LwwtCode 173:二叉搜索树迭代器 Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
爱写bug
2020-03-12
4470
LeetCode 101: 对称二叉树 Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
爱写bug
2020-02-18
3150
LeetCode 112: 路径总和 Path Sum
给定一个二叉树和一个目标和,判断该树中是否存在根节点到叶子节点的路径,这条路径上所有节点值相加等于目标和。
爱写bug
2020-02-18
6740
LeetCode 104: 二叉树的最大深度 Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
爱写bug
2020-02-18
3820
LeetCode 589: N 叉树的前序遍历 N-ary Tree Preorder Traversal
Given an n-ary tree, return the preorder traversal of its nodes' values.
爱写bug
2020-01-02
6760
LeetCode 590: N 叉树的后序遍历 N-ary Tree Postorder Traversal
Given an n-ary tree, return the postorder traversal of its nodes' values.
爱写bug
2020-01-02
6010
LeetCode 3: 无重复字符的最长子串
Given a string, find the length of the longest substring without repeating characters.
爱写bug
2019-12-02
4700
LeetCode 49: 字母异位词分组 Group Anagrams
给定一个字符串数组,将字母异位词组合在一起。字母异位词指字母相同,但排列不同的字符串。
爱写bug
2019-11-11
7970
LeetCode 350: 两个数组的交集 II Intersection of Two Arrays II
Given two arrays, write a function to compute their intersection.
爱写bug
2019-10-30
4300
LeetCode 387: 字符串中的第一个唯一字符
给定一个字符串,找到它的第一个不重复的字符,并返回它的索引。如果不存在,则返回 -1。
爱写bug
2019-10-30
5090
LeetCode 205:同构字符串 Isomorphic Strings
所有出现的字符都必须用另一个字符替换,同时保留字符的顺序。两个字符不能映射到同一个字符上,但字符可以映射自己本身。
爱写bug
2019-10-17
7010
LeetCode 1:两数之和 Two Sum
给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。
爱写bug
2019-10-15
3980
LeetCode 202: 快乐数 Happy Number
一个 “快乐数” 定义为:对于一个正整数,每一次将该数替换为它每个位置上的数字的平方和,然后重复这个过程直到这个数变为 1,也可能是无限循环但始终变不到 1。如果可以变为 1,那么这个数就是快乐数。
爱写bug
2019-10-12
9010
LeetCode 136:只出现一次的数字 Single Number
给定一个非空整数数组,除了某个元素只出现一次以外,其余每个元素均出现两次。找出那个只出现了一次的元素。
爱写bug
2019-10-12
4060
LeetCode 841:钥匙和房间 Keys and Rooms
有 N 个房间,开始时你位于 0 号房间。每个房间有不同的号码:0,1,2,...,N-1,并且房间里可能有一些钥匙能使你进入下一个房间。
爱写bug
2019-09-25
7130
Leetcode 542:01 矩阵 01 Matrix
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell.
爱写bug
2019-09-02
7770
LeetCode 200:岛屿数量 Number of Islands
给定一个由 '1'(陆地)和 '0'(水)组成的的二维网格,计算岛屿的数量。一个岛被水包围,并且它是通过水平方向或垂直方向上相邻的陆地连接而成的。你可以假设网格的四个边均被水包围。
爱写bug
2019-09-02
6300
LeetCode 752:打开转盘锁 Open the Lock
你有一个带有四个圆形拨轮的转盘锁。每个拨轮都有10个数字:'0', '1', '2', '3', '4', '5', '6', '7', '8', '9' 。每个拨轮可以自由旋转:例如把 '9' 变为 '0','0'变为 '9' 。每次旋转都只能旋转一个拨轮的一位数字。
爱写bug
2019-08-28
1K0
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档