码迷,mamicode.com
首页 >  
搜索关键字:two points    ( 13225个结果
219. Contains Duplicate II
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the  ...
分类:其他好文   时间:2020-03-29 21:16:05    阅读次数:58
1005. 三角形最大面积
1005. 三角形最大面积 中文English 平面上有一系列点。返回由其中三个点可以形成的三角形最大面积。 样例 样例: 输入: points = [[0,0],[0,1],[1,0],[0,2],[2,0]] 输出: 2 解释: 这五个点如图所示,红色三角形面积最大。 注意事项 3 <= poi ...
分类:其他好文   时间:2020-03-29 18:05:14    阅读次数:62
452. Minimum Number of Arrows to Burst Balloons
There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the hor ...
分类:其他好文   时间:2020-03-29 12:34:44    阅读次数:57
Codeforces Round #627 (Div. 3) D. Pair of Topics(二分/直接遍历)
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
【GDOI2020模拟03.28】数二数(two) (计数动态规划):
? 先考虑如何判断一个询问集是否合法。 考虑询问一次$[l,r]$,能把$[1,l 1]∪[r+1,n]$和$[l,r]$区分开来。 现在定义一个块为一个没有被区分开极大的点集合。 当所有块的大小都是1的时候,这个方案就是合法。 ? 性质: 1.一个块是由若干连续段组成,比如下面这样: 111223 ...
分类:其他好文   时间:2020-03-28 23:33:05    阅读次数:84
LeetCode-两棵二叉搜索树的所有元素
注:LeetCode--树专题。 题目链接(1305):https://leetcode-cn.com/problems/all-elements-in-two-binary-search-trees/ 题目描述: 给你 root1 和 root2 这两棵二叉搜索树。 请你返回一个列表,其中包含 两 ...
分类:其他好文   时间:2020-03-27 21:47:16    阅读次数:80
1009 Product of Polynomials
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
4. Median of Two Sorted Arrays
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
[HTML 5 Performance] Benchmark functions runtime in chrome console
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
LeetCode 653. Two Sum IV - Input is a BST(在BST中寻找两个节点,使它们的和为一个给定值)
题意:在BST中寻找两个节点,使它们的和为一个给定值。 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(in ...
分类:其他好文   时间:2020-03-26 01:22:25    阅读次数:70
13225条   上一页 1 ... 43 44 45 46 47 ... 1323 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!