码迷,mamicode.com
首页 >  
搜索关键字:smallest difference    ( 1670个结果
LeetCode | 0563. 二叉树的坡度【Python】
Problem LeetCode Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between ...
分类:编程语言   时间:2021-01-25 11:29:21    阅读次数:0
LeetCode | 0530. 二叉搜索树的最小绝对差【Python】
Problem LeetCode Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: I ...
分类:编程语言   时间:2021-01-21 10:55:51    阅读次数:0
LeetCode | 0230. 二叉搜索树中第K小的元素【Python】
Problem LeetCode Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Example 1: Input: root = [3,1,4,null ...
分类:编程语言   时间:2021-01-11 10:45:32    阅读次数:0
difference between count(1) and count(*)
有些问题被问的太多次了,截几张图放着。 ...
分类:其他好文   时间:2020-12-30 11:15:30    阅读次数:0
null和DBNull.Value得区别
参考资料:http://stackoverflow.com/questions/4958379/what-is-the-difference-between-null-and-system-dbnull-value http://www.cnblogs.com/muou/archive/2010/0 ...
分类:数据库   时间:2020-12-29 11:11:14    阅读次数:0
CF1462E2 Close Tuples (hard version)
Description This is the hard version of this problem. The only difference between the easy and hard versions is the constraints on $ k $ and $ m $ . I ...
分类:其他好文   时间:2020-12-25 11:42:12    阅读次数:0
20.12.20 316. 去除重复字母 单调栈
题目 给你一个字符串 s ,请你去除字符串中重复的字母,使得每个字母只出现一次。需保证 返回结果的字典序最小(要求不能打乱其他字符的相对位置)。 注意:该题与 1081 https://leetcode-cn.com/problems/smallest-subsequence-of-distinct ...
分类:其他好文   时间:2020-12-25 11:41:11    阅读次数:0
0865. Smallest Subtree with all the Deepest Nodes (M)
Smallest Subtree with all the Deepest Nodes (M) 题目 Given the root of a binary tree, the depth of each node is the shortest distance to the root. Retur ...
分类:其他好文   时间:2020-12-17 12:55:47    阅读次数:3
LeetCode #389. Find the Difference
###题目 389. Find the Difference ###解题方法 先统计两个字符串中每个字母的出现次数,记为dic_s和dic_t,先遍历dic_s,找一个在dic_t中没出现的字母,或者在dic_t中出现了但是频数和dic_s中不一样的字母,找到了就break不做了,要是没找到就再去d ...
分类:其他好文   时间:2020-12-14 13:02:21    阅读次数:3
220. Contains Duplicate III(核心:set数组有序/桶排序)
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:编程语言   时间:2020-12-10 11:13:48    阅读次数:6
1670条   上一页 1 2 3 4 ... 167 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!