help | forum home | logged in as: guest | login/register
link mingle
interview_questions
Bookmarks
Find the Interval
0
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
 
Thumbnails by Thumbshots.com