码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted arrays    ( 19870个结果
1. Two Sum
题目链接:two-num 思路一:两层for循环暴力求解,结果超时 1 def twoSum(nums,target):#使用二维数组 2 for i in range(len(nums)): 3 for j in np.arange(i+1,len(nums)): 4 if(nums[i] + n ...
分类:其他好文   时间:2020-06-29 17:11:10    阅读次数:41
输入两个整数,要求输出其中较大者。用函数来找到大数
#include <stdio.h>int main(){ int max(int x,int y); int a,b,c; printf("Please input two data:\n"); scanf("%d%d",&a,&b); c=max(a,b); printf("max is :%d ...
分类:其他好文   时间:2020-06-29 17:05:39    阅读次数:202
python - OpenCV 霍夫圆变换检测球体
重要的是理解霍夫圆变换过程:https://en.wikipedia.org/wiki/Circle_Hough_Transform import cv2 as cv im = cv.imread('../result_25k.png', cv.IMREAD_COLOR) im_gray = cv. ...
分类:编程语言   时间:2020-06-29 15:25:12    阅读次数:131
redis在C#中的使用
redis 是一个非关系型高性能的key-value数据库。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/r ...
分类:Windows程序   时间:2020-06-29 15:07:27    阅读次数:77
1492. The kth Factor of n
Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of all factors of n sorted ...
分类:其他好文   时间:2020-06-29 10:05:07    阅读次数:60
0043. Multiply Strings (M)
Multiply Strings (M) 题目 Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as ...
分类:其他好文   时间:2020-06-29 09:55:34    阅读次数:55
RAID的认识
1.简介 1.什么是RAID RAID ——Redundant Arrays of Inexpensive Disks,廉价冗余磁盘阵列,由数颗硬盘组成一个容错阵列系统。服务器或存储,硬盘都需要做RAID进行数据备份。 2.使用RAID的好处 1、提供硬盘串接,将所有的硬盘组成一个虚拟的大硬盘 2、 ...
分类:其他好文   时间:2020-06-29 00:26:05    阅读次数:60
Codeforce 1335C - Two Teams Composing 统计技能种类数量+统计同一技能最大数量
[codeforces 1335C] Two Teams Composing 统计技能种类数量+统计同一技能最大数量 https://codeforces.com/contest/1335/problem/C 7 4 2 4 1 4 3 4 统计技能种类数量 4种不同技能 统计同一技能最大数量 技能 ...
分类:其他好文   时间:2020-06-28 22:18:27    阅读次数:90
java8 .stream().sorted().filter().map().collect()用法
https://blog.csdn.net/shine_guo_star/article/details/94383319 steam():把一个源数据,可以是集合,数组,I/O channel, 产生器generator 等,转化成流。 map():用于映射每个元素到对应的结果。以下代码片段使用 ...
分类:编程语言   时间:2020-06-28 20:59:10    阅读次数:598
XML 2020-6-28
1.XML是一种可扩展标记语言,标签自定义;功能是存储数据-->做配置文件,在网络中传输;2.和HTML的区别:one:xml标签自定义,HTML标签是预定义two:xml语法严格,HTML语法松散three:xml是存储数据的,HTML是展示效果3.基本语法:one:xml文档的后缀名.xmltw ...
分类:其他好文   时间:2020-06-28 18:03:30    阅读次数:96
19870条   上一页 1 ... 41 42 43 44 45 ... 1987 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!