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 complexity sh ...
分类:
其他好文 时间:
2016-04-18 13:15:00
阅读次数:
207
第二章学习了的R函数: 1 sum 计算和 sum(x,na.rm=TRUE) 计算向量x中所有数的和,其中排除了NA元素 2 median 计算中位数 返回一个样本数据中间的那个数 median(x,na.rm=TRUE) 3 max 计算最大值 max(x,na.rm=TRUE) 4 min 计 ...
分类:
编程语言 时间:
2016-04-11 18:25:42
阅读次数:
144
计算中间两个数的平均值 没被hard难住,这题就是归并排序的应用,注意空指针 ...
分类:
其他好文 时间:
2016-04-10 12:48:12
阅读次数:
149
1.Two Sum naive 4.Median of Two Sorted Arrays 找两个已排序数组的中位数 直接数可以过,但很蠢,O(m+n)时间 1 class Solution { 2 public: 3 double findMedianSortedArrays(vector<int ...
分类:
其他好文 时间:
2016-04-09 20:37:50
阅读次数:
273
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:
其他好文 时间:
2016-04-08 13:14:51
阅读次数:
122
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 complexity sh ...
分类:
其他好文 时间:
2016-04-06 07:05:34
阅读次数:
239
题目描述 FJ is surveying his herd to find the most average cow. He wants to know how much milk this ‘median’ cow gives: half of the cows give as much or m... ...
分类:
其他好文 时间:
2016-04-04 22:37:36
阅读次数:
187
1:简介InfluxDB是一个开源分布式时序、事件和指标数据库。使用Go语言编写,无需外部依赖。其设计目标是实现分布式和水平伸缩扩展。1、它有三大特性:1.TimeSeries(时间序列):你可以使用与时间有关的相关函数(如最大,最小,求和等)2.Metrics(度量):你可以实时对大量数..
分类:
数据库 时间:
2016-04-03 20:33:56
阅读次数:
497
文章目录如下 (1)自己的思路 (2)自己的代码 (3)别人的思路 (4)别人的代码 (5)对比自己的不足之处 题目如下: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the media ...
分类:
其他好文 时间:
2016-03-26 16:59:46
阅读次数:
116
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 complexity sh
分类:
其他好文 时间:
2016-03-07 01:21:12
阅读次数:
136