摘要: 3Sum ClosestGiven an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three int... 阅读全文
posted @ 2015-06-29 22:48 `Liok 阅读(520) 评论(0) 推荐(0) 编辑
摘要: Majority Element IIGiven an integer array of sizen, find all elements that appear more than⌊ n/3 ⌋times. The algorithm should run in linear time and i... 阅读全文
posted @ 2015-06-29 17:53 `Liok 阅读(372) 评论(0) 推荐(0) 编辑