摘要: Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space. Hi 阅读全文
posted @ 2016-10-22 11:31 咖啡中不塌缩的方糖 阅读(134) 评论(0) 推荐(0)
摘要: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each hou 阅读全文
posted @ 2016-10-22 11:02 咖啡中不塌缩的方糖 阅读(207) 评论(0) 推荐(0)