The next lecture in a high school requires two topics to be discussed. The ii -th topic is interesting by aiai units for the teacher and by bibi units ...
分类:
其他好文 时间:
2020-03-29 01:44:16
阅读次数:
280
? 先考虑如何判断一个询问集是否合法。 考虑询问一次$[l,r]$,能把$[1,l 1]∪[r+1,n]$和$[l,r]$区分开来。 现在定义一个块为一个没有被区分开极大的点集合。 当所有块的大小都是1的时候,这个方案就是合法。 ? 性质: 1.一个块是由若干连续段组成,比如下面这样: 111223 ...
分类:
其他好文 时间:
2020-03-28 23:33:05
阅读次数:
84
注:LeetCode--树专题。 题目链接(1305):https://leetcode-cn.com/problems/all-elements-in-two-binary-search-trees/ 题目描述: 给你 root1 和 root2 这两棵二叉搜索树。 请你返回一个列表,其中包含 两 ...
分类:
其他好文 时间:
2020-03-27 21:47:16
阅读次数:
80
This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2020-03-27 21:20:29
阅读次数:
79
Problem : There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time com ...
分类:
其他好文 时间:
2020-03-27 18:31:14
阅读次数:
78
1、固定的Matrix 和 动态的Matrix 固定的Matrix 大小不可变,存储在栈中, 内部实现:float mymatrix[16]; 动态的Matrix 大小可变,存储在堆中, 内部实现:float *mymatrix = new float[rows*columns]; 2、定义与使用M ...
分类:
其他好文 时间:
2020-03-26 20:05:52
阅读次数:
106
Sometimes you'd like to measure how two implementations compare in regards to run time. In this lesson you will learn how to quickly do this using Con ...
分类:
Web程序 时间:
2020-03-26 19:44:25
阅读次数:
87
GRID属性(设为网格布局) display:grid; display:inline-grid; 容器(父元素): 网格布局 grid-template-rows:; (单位:px/%/fr, auto) grid-template-columns:; 重复行列 grid-template-row ...
分类:
其他好文 时间:
2020-03-26 19:22:40
阅读次数:
91
题意:在BST中寻找两个节点,使它们的和为一个给定值。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(in ...
分类:
其他好文 时间:
2020-03-26 01:22:25
阅读次数:
70
914. 翻转游戏 中文English You are playing the following Flip Game with your friend: Given a string that contains only two characters: + and -, you can flip ...
分类:
其他好文 时间:
2020-03-26 01:06:15
阅读次数:
79