link mingle home | logged in as: guest | login/register| submit link


IndiaDiscuss.com : Social Bookmarkings and News Networking Site for India
interview_questions
Bookmarks
Find the Interval
34
Votes

Given n non overlapping intervals and an element. Write a program to find the interval into which this element falls.

saved under Amazon Interview Questions by interview_questions

 
Simply iterate through all elements is the best strategy. If it were a sorted array we could have used Binary Search.
comment by freebooksandarticles on 2008-06-23 04:44:58
 



Enter the string above
 
IndiaDiscuss | Published News | Hot
Indian Social News and Links Network
IndiaDiscuss | Published News
Indian Social News and Links Network