摘要:
Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2017-07-29 12:41
Beserious
阅读(143)
评论(0)
推荐(0)
摘要:
Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2017-07-29 10:17
Beserious
阅读(380)
评论(0)
推荐(0)
摘要:
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 @ 2017-07-29 09:35
Beserious
阅读(160)
评论(0)
推荐(0)
浙公网安备 33010602011771号