摘要:
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the 阅读全文
posted @ 2018-03-25 21:53
还是说得清点吧
阅读(101)
评论(0)
推荐(0)
摘要:
Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2018-03-25 21:16
还是说得清点吧
阅读(125)
评论(0)
推荐(0)
摘要:
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 output the 阅读全文
posted @ 2018-03-25 20:38
还是说得清点吧
阅读(104)
评论(0)
推荐(0)