/** * 349. Intersection of Two Arrays * https://leetcode.com/problems/intersection-of-two-arrays/description/ Example 1:Input: nums1 = [1,2,2,1], nums... ...
分类:
其他好文 时间:
2019-01-13 22:23:29
阅读次数:
228
https://leetcode.com/tag/two-pointers/ ...
分类:
其他好文 时间:
2019-01-13 19:39:34
阅读次数:
214
Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a ...
分类:
其他好文 时间:
2019-01-13 19:07:57
阅读次数:
219
Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return the list as 2->1->4->3. Note: You ...
分类:
其他好文 时间:
2019-01-13 15:00:12
阅读次数:
212
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 ...
分类:
其他好文 时间:
2019-01-13 13:42:33
阅读次数:
247
题目描述 如何得到一个数据流中的中位数?如果从数据流中读出奇数个数值,那么中位数就是所有数值排序之后位于中间的数值。如果从数据流中读出偶数个数值,那么中位数就是所有数值排序之后中间两个数的平均值。我们使用Insert()方法读取数据流,使用GetMedian()方法获取当前读取数据的中位数。 如何得 ...
分类:
其他好文 时间:
2019-01-13 00:08:02
阅读次数:
255
When the dependent clause comes first, a comma should be used to separate the two clauses. eg.Because Mary and Samantha arrived at the bus station bef ...
分类:
其他好文 时间:
2019-01-12 16:41:55
阅读次数:
293
一、题目要求 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 ...
分类:
其他好文 时间:
2019-01-12 00:21:24
阅读次数:
183
numpy介绍 创建numpy的数 一维数组是什么样子 可以理解为格子纸的一行就是一个一维数据 two_arr = np.array([1, 2, 3]) 二维数组什么样子 理解为一张格子纸, 多个一维数组构成一个二维数组 two_arr = np.array([ [1, 2, 3], [4, 5, ...
分类:
其他好文 时间:
2019-01-11 22:08:24
阅读次数:
193
还以为必然timeout 结果并没有 不过7秒多也惨不忍睹了 ...
分类:
其他好文 时间:
2019-01-11 19:02:03
阅读次数:
104