Example: 2,3,5,1,2,2,5,3,5,3 Answer : 1 as 2,3,5 are repeated three times Complexity should be better than O(nlogn)
No comments:
Post a Comment