标签:algo lin elements linear problem nts time array nbsp
Problem statement:
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.
Solution:
标签:algo lin elements linear problem nts time array nbsp
原文地址:http://www.cnblogs.com/wdw828/p/6917176.html