skip to main
|
skip to sidebar
The joy of Building !!!
Friday, March 6, 2009
4. Position of a number in a sorted array
4. How many comparisons are required to find the position of a number in a sorted array.
Answer: Using binary search it would require O(log n) comparisons.
1 comment:
Varunkumar Nagarajan
said...
Perfect!
Try solving these - http://varunkumar-n.blogspot.com/2009/03/solve-these.html
March 7, 2009 at 5:19 AM
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2015
(1)
►
October
(1)
►
2012
(1)
►
September
(1)
▼
2009
(8)
►
September
(1)
►
August
(1)
▼
March
(1)
4. Position of a number in a sorted array
►
February
(3)
►
January
(2)
►
2008
(7)
►
December
(1)
►
November
(3)
►
July
(2)
►
February
(1)
About Me
rogue
View my complete profile
1 comment:
Perfect!
Try solving these - http://varunkumar-n.blogspot.com/2009/03/solve-these.html
Post a Comment