摘要: Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume that the arr... 阅读全文
posted @ 2014-12-26 12:42 lilyfindjob 阅读(138) 评论(0) 推荐(0)
摘要: Compare two version numbers version1 and version1.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assum 阅读全文
posted @ 2014-12-26 12:38 lilyfindjob 阅读(537) 评论(3) 推荐(0)