Register
|
Login
Published News
Upcoming News
Submit a New Story
Groups
News
World
Politics
Business
Technology
Cool Sites
How To
Research
Programming
Games
Entertainment
Films
TV
Hot
Education
Results
Jobs
Sports
Life Style
Health
Travel
Food
Automobiles
States
Kerala
Interview Questions
Puzzles
Programming Questions
Everything Else
Fun
Photography
CS Resources
RSS
1
Vote
Given a list of n elements in an array, finds all the elements that appear more than n/3 times in the list
Posted by
csguy (#13)
532 days ago (Editorial)
Design an algorithm that, given a list of n elements in an array, finds all the elements that appear more than n/3 times in the list.
The algorithm should run in linear time.
You are expected to use comparisons and achieve linear time.
Who Voted for this Story
csguy
Comments
Written by
csguy (#13)
532 days ago
I think if we can use a Trie as a hashing scheme and created while reading each elements, we should be able to get the elements greater than a given count. But this will work for all kinds of frequencies.
-
0
+
Written by
csguy (#13)
526 days ago
http://apps.topcoder.com/forums/?module=Thread&threadID=729518&start=0
-
0
+
Log in to comment
or register
here
.
What is IndiaDiscuss?
Indian Social News and Links Network
Top Users
Tag cloud
Live