Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the sam ...
分类:
其他好文 时间:
2020-05-13 09:40:41
阅读次数:
65
// Hey buddy you get the wrong door, the leather club is two blocks down. #include <bits/stdc++.h> using namespace std; const int N = 200, INF = 0x3f3 ...
分类:
其他好文 时间:
2020-05-12 20:16:46
阅读次数:
73
Abstract: What do you think about the question? Does the 64 bits always do better? The answer is NO. When we talk about 64 bit vs. 32 bit we mean two ...
分类:
其他好文 时间:
2020-05-12 20:12:53
阅读次数:
84
Dart库引入第三方库懒加载(延时加载)deferred as库分片partTOC Dart库 Dart中的库主要有三种: 1、我们自定义的库 import 'lib/xxx.dart; import '../../part-two/chapter3/enum.dart'; 2、系统内置库 impo... ...
分类:
其他好文 时间:
2020-05-12 18:50:32
阅读次数:
255
题目 Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All th ...
分类:
其他好文 时间:
2020-05-12 14:14:19
阅读次数:
70
给你两个有序整数数组 nums1 和 nums2,请你将 nums2 合并到 nums1 中,使 nums1 成为一个有序数组。 来源:力扣(LeetCode) 需要从尾开始遍历,否则在 nums1 上归并得到的值会覆盖还未进行归并比较的值。 class Solution { public: voi ...
分类:
编程语言 时间:
2020-05-12 11:28:32
阅读次数:
77
Given an array of integers arr. We want to select three indices i, j and k where (0 <= i < j <= k < arr.length). Let's define a and b as follows: a = ...
分类:
其他好文 时间:
2020-05-12 09:30:41
阅读次数:
59
Week 2 3.5.2020 Overview This week, we have mainly learned two parts: 1. How to match the same feature points in two images from different viewpoints. ...
分类:
其他好文 时间:
2020-05-12 00:03:20
阅读次数:
112
给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。 函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。 说明: 返回的下标值(index1 和 index2)不是从零开始的。 你可以假设每个输入只对应唯一的答案,而且你不可以 ...
分类:
编程语言 时间:
2020-05-11 23:21:11
阅读次数:
76
sorted_set类型结构:在set类型的基础上进行排序 一、sorted_set类型数据的基本操作 添加数据 zadd key score1 member1 [score2 member2] 获取全部数据 zrange key start stop [withscores] #如果不写withs ...
分类:
其他好文 时间:
2020-05-11 13:44:28
阅读次数:
76