4. Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The ...
分类:
其他好文 时间:
2017-10-07 01:50:08
阅读次数:
168
Shuffling is a common process used with randomizing the order for a deck of cards. The key property for a perfect shuffle is that each item should hav ...
分类:
其他好文 时间:
2017-10-03 18:58:47
阅读次数:
226
217. Contains Duplicate【easy】 Given an array of integers, find if the array contains any duplicates. Your function should return true if any value app ...
分类:
其他好文 时间:
2017-10-03 12:02:36
阅读次数:
122
link Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algori ...
分类:
其他好文 时间:
2017-10-02 23:10:34
阅读次数:
250
http://www.ruanyifeng.com/blog/2017/02/filename-should-be-lowercase.html vue-cli 问题: http://www.jianshu.com/p/2769efeaa10a ...
分类:
其他好文 时间:
2017-10-02 21:32:30
阅读次数:
130
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example,Given the following matrix: You s ...
分类:
其他好文 时间:
2017-10-02 17:50:20
阅读次数:
152
Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 计算n!结果的末尾有几个零。 题目要求复杂度为对 ...
分类:
其他好文 时间:
2017-10-02 11:51:19
阅读次数:
189
题目描述 春春幼儿园举办了一年一度的“积木大赛”。今年比赛的内容是搭建一座宽度为n的大厦,大厦可以看成由n块宽度为1的积木组成,第i块积木的最终高度需要是hi。 在搭建开始之前,没有任何积木(可以看成n块高度为 0 的积木)。接下来每次操作,小朋友们可以选择一段连续区间[l, r],然后将第第 L ...
分类:
其他好文 时间:
2017-10-01 22:05:56
阅读次数:
124