码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
4. Median of Two Sorted Arrays
题目描述: 给定两个大小为 m 和 n 的有序数组 nums1 和 nums2。 请你找出这两个有序数组的中位数,并且要求算法的时间复杂度为 O(log(m + n))。 你可以假设 nums1 和 nums2 不会同时为空。 示例 1: nums1 = [1, 3]nums2 = [2] 则中位数 ...
分类:其他好文   时间:2020-04-06 17:09:52    阅读次数:87
[Algo] Find Pair with Given Sum
Given a list of positive integers nums and an int target, return indices of the two numbers such that they add up to a target - 30. Conditions: You wi ...
分类:其他好文   时间:2020-04-06 09:49:05    阅读次数:76
[LC] 973. K Closest Points to Origin
We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid ...
分类:其他好文   时间:2020-04-06 09:25:29    阅读次数:73
231. Power of Two
Problem : Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: `` Input: 218 Output: false c bool ...
分类:其他好文   时间:2020-04-06 00:03:04    阅读次数:83
[省赛训练(DP)]Course Selection System
题面: There are n courses in the course selection system of Marjar University. The i-th course is described by two values: happiness Hi and credit Ci. I ...
分类:其他好文   时间:2020-04-05 22:35:03    阅读次数:93
python opencv图像缺陷比对(轮廓比对)
机器视觉缺陷检测实验 一、实验目的 (1)利用python编写程序实现对图像的缺陷检测; (2)通过轮廓对比检测出合格产品与不合格产品; (3)实现在图像上显示文本提示信息; 二、题目描述 (1)读取标准图像并显示; (2)利用for循环读取待测的对比图像; (3)将标准图像与一张待测图像进行中值滤 ...
分类:编程语言   时间:2020-04-04 18:48:25    阅读次数:276
[LeetCode] 424. Longest Repeating Character Replacement
替换后的最长重复字符。题意是给一个字符串,只有大写字母,允许你替换其中的K个字母,问替换操作完成后能返回的最长字母相同的子串的长度是多少。例子, Example 1: Input: s = "ABAB", k = 2 Output: 4 Explanation: Replace the two 'A ...
分类:其他好文   时间:2020-04-04 09:41:15    阅读次数:68
python 批量创建文件夹
import os, sysdef genDir(): base = 'E:/py doc/data/' i = 0 name=['ZERO','ONE','TWO','THREE','FOUR','FIVE','SIX','SEVEN','EIGHT','NINE'] for j in range ...
分类:编程语言   时间:2020-04-04 09:23:26    阅读次数:108
Chapter3A descriptive statistics:Numeric measures
TOOL: data analysis --rank and percentile AVERAGE(), TRIMMEAN(...,percenatge) , MEDIAN() , MODE() , PERCENTILE(...,k) , QUARTILE(...,k) var/Var:方差 VAR ...
分类:其他好文   时间:2020-04-03 16:49:55    阅读次数:67
ThunderNet :像闪电一样,旷视再出超轻量级检测器,高达267fps | ICCV 2019
论文提出了实时的超轻量级two stage detector ThunderNet,靠着精心设计的主干网络以及提高特征表达能力的CEM和SAM模块,使用很少的计算量就能超越目前的one stage detectors,在ARM平台也达到了实时性,GPU的速度更是达到267fps 来源:【晓飞的算法工 ...
分类:Web程序   时间:2020-04-03 13:55:05    阅读次数:221
12209条   上一页 1 ... 35 36 37 38 39 ... 1221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!