码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
寻找两个有序数组的中位数
给定两个大小为 m 和 n 的有序数组 nums1 和 nums2。 请你找出这两个有序数组的中位数,并且要求算法的时间复杂度为 O(log(m + n))。 你可以假设 nums1 和 nums2 不会同时为空。 示例 1: nums1 = [1, 3]nums2 = [2] 则中位数是 2.0示 ...
分类:编程语言   时间:2020-04-24 00:57:35    阅读次数:50
Conway's Game of Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells ...
分类:其他好文   时间:2020-04-23 18:55:58    阅读次数:76
CTFHUB 信息泄露
可用扫描工具尝试扫描(disearch、御剑等) 目录遍历 Method One 直接手动遍历 Method Two PHPINFO 搜索flag 要注意下ctfhub后面有个空格,要删掉 备份文件下载 网站源码 拿disearch扫一下 可以发现www.zip,访问下载 可以发现里面有三个文件 u ...
分类:其他好文   时间:2020-04-23 12:26:09    阅读次数:124
236.Lowest Common Ancestor of a Binary Tree
题目描述 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The ...
分类:其他好文   时间:2020-04-23 00:51:39    阅读次数:73
codeforces #634(div3) A-E题解
"A. Candies and Two Sisters" + 将糖果分为a,b两份,且a t; while(t ){ cin n; cout t; while(t ){ cin n a b; for(int i = 0; i book; int main(void){ ios::sync_with_ ...
分类:其他好文   时间:2020-04-22 13:42:51    阅读次数:85
目标检测轻量化压缩
目标检测轻量化压缩 目标检测难点概述 目标检测是计算机视觉中一个重要问题,在行人跟踪、车牌识别、无人驾驶等领域都具有重要的研究价值。近年来,随着深度学习对图像分类准确度的大幅度提高,基于深度学习的目标检测算法逐渐成为主流。 自 2014 年以来,目标检测框架分为two-stage 和 one-sta ...
分类:其他好文   时间:2020-04-22 09:44:54    阅读次数:61
217. 存在重复元素
思路: 题意为:只要有一个元素出现次数>=2,则返回true;否则返回false;利用list转set会去重的特点。注:len(setnums) == len(nums)时,说明每个元素都是唯一的,返回false;只要去重后长度减小,说明有重复元素,则返回true。两种: 1 class Solut ...
分类:其他好文   时间:2020-04-22 00:06:48    阅读次数:62
1128 N Queens Puzzle
The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution ...
分类:其他好文   时间:2020-04-21 23:40:06    阅读次数:92
【LeetCode 1. Two Sum】
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2020-04-21 18:36:52    阅读次数:67
asp.net mvc 接收jquery ajax发送的数组对象
<script type="text/javascript"> $(function () { var obj = { name: "军需品", myclass: [{ one: 1, two: 2, three: 3 }, { one: 11, two: 22, three: 33 }, { on ...
分类:编程语言   时间:2020-04-21 09:18:21    阅读次数:92
17004条   上一页 1 ... 49 50 51 52 53 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!