摘要: There are n coins with different value in a line. Two players take turns to take one or two coins from left side until there are no more coins left. T... 阅读全文
posted @ 2015-05-23 23:47 Eason Liu 阅读(2238) 评论(0) 推荐(0) 编辑
摘要: Find thekth largest element in an unsorted array.For example,Given[3,2,1,5,6,4]and k = 2, return 5.Note:You may assume k is always valid, 1 ≤ k ≤ arra... 阅读全文
posted @ 2015-05-23 12:06 Eason Liu 阅读(4918) 评论(3) 推荐(0) 编辑