摘要:
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 complexi 阅读全文
posted @ 2017-07-29 19:00
Beserious
阅读(149)
评论(0)
推荐(0)
摘要:
Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte 阅读全文
posted @ 2017-07-29 15:30
Beserious
阅读(178)
评论(0)
推荐(0)
摘要:
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号