摘要: Find K-th largest element in an array. In array [9,3,2,4,8], the 3rd largest element is 4. In array [1,2,3,4,5], the 1st largest element is 5, 2nd lar 阅读全文
posted @ 2016-03-24 13:11 哥布林工程师 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2016-03-24 12:16 哥布林工程师 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2016-03-24 11:43 哥布林工程师 阅读(101) 评论(0) 推荐(0) 编辑
摘要: Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers [start, end]. For each 阅读全文
posted @ 2016-03-24 07:36 哥布林工程师 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers [start, end]. For each 阅读全文
posted @ 2016-03-24 07:23 哥布林工程师 阅读(228) 评论(0) 推荐(0) 编辑