"Suppose there is a database of all people on Earth where one of the fields is age (the amount of full years). Provide linear time and constant memory algorithm for sorting the database by people's age."
Answers and Comments
this may help to solve this problem http://gafter.blogspot.com/2006/11/linear-time-sort-puzzler.html
Great link, thanks, Didxga !
Saved Stories
- What are the advantages of the demat account?
- Tell us about the last time you lost your temper? Did you take personal accountability for this situation?
- What is GAAP? Name at least three of the principles
- Can a Silverlight application create or change Office Documents via Open XML?
- How would you sort a linked list?
Sponsored Categories
http://en.wikipedia.org/wiki/Bucket_sort