摘要:
[抄题]: Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to outp 阅读全文
posted @ 2018-04-21 22:33
苗妙苗
阅读(324)
评论(0)
推荐(0)
摘要:
[抄题]: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time co 阅读全文
posted @ 2018-04-21 21:29
苗妙苗
阅读(621)
评论(0)
推荐(0)
摘要:
[抄题]: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: [暴力解法]: 时间分析 阅读全文
posted @ 2018-04-21 16:22
苗妙苗
阅读(126)
评论(0)
推荐(0)
摘要:
[抄题]: Given an array with n integers, your task is to check if it could become non-decreasing by modifying at most 1 element. We define an array is no 阅读全文
posted @ 2018-04-21 15:49
苗妙苗
阅读(130)
评论(0)
推荐(0)
摘要:
[抄题]: Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of each cell becomes t 阅读全文
posted @ 2018-04-21 10:31
苗妙苗
阅读(170)
评论(0)
推荐(0)
摘要:
[抄题]: Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. For example,Assume that w 阅读全文
posted @ 2018-04-21 09:19
苗妙苗
阅读(178)
评论(0)
推荐(0)