56: Merge Intervals Given a collection of intervals, merge all overlapping intervals. Example 1: Example 2: 思路: 将区间的左端点按从小到大进行排序,然后观察相邻2个区间是否有公共部分,如果有 ...
分类:
其他好文 时间:
2020-01-30 21:10:18
阅读次数:
62
测试回调代码 package com.example.hello; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; public class Mai ...
分类:
移动开发 时间:
2020-01-30 20:59:08
阅读次数:
101
In tcode R3AC1 you can maintain block size for an adapter object. For example if you have 110 equipment to be downloaded from ERP, there would be 3 in ...
分类:
其他好文 时间:
2020-01-30 17:40:54
阅读次数:
86
上篇博客我们看了AtomicLong和LongAdder的由来,但是有的时候我们想一下,LongAdder这个类也有点局限性,因为只能是每一次都+1,那有没有办法每次+2呢?或者每次乘以2?说得更抽象一点,我们能不能自己指定规则呢?干嘛老是傻乎乎的+1呢? 于是就有了LongAccumulator这 ...
分类:
其他好文 时间:
2020-01-30 17:06:53
阅读次数:
57
1302. Deepest Leaves Sum Given a binary tree, return the sum of values of its deepest leaves. Example 1: Input: root = [1,2,3,4,5,null,6,7,null,null,n ...
分类:
其他好文 时间:
2020-01-30 12:59:39
阅读次数:
85
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a floati ...
分类:
其他好文 时间:
2020-01-30 12:32:09
阅读次数:
67
二叉搜索树的范围和。题意是给一个二叉搜索树和一个范围(L, R),请输出二叉搜索树里面所有node值介于L和R之间的node值的加和(sum)。例子, Example 1: Input: root = [10,5,15,3,7,null,18], L = 7, R = 15 Output: 32 E ...
分类:
其他好文 时间:
2020-01-30 10:09:53
阅读次数:
66
Define S = [s,n] as the string S which consists of n connected strings s. For example, ["abc", 3] ="abcabcabc". On the other hand, we define that stri ...
分类:
编程语言 时间:
2020-01-30 10:06:46
阅读次数:
88
1. SELECT 2. Queries with constraints WHERE clause Operator | SQL Example : : | : : BETWEEN ... AND ... | clo_name BETWEEN 0.5 AND 1.5 NOT BETWEEN ... ...
分类:
数据库 时间:
2020-01-29 18:15:10
阅读次数:
122
1、题目 9. Palindrome Number Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example ...
分类:
其他好文 时间:
2020-01-29 17:47:22
阅读次数:
55