write an algorithm which can find the largest number among
the given list using binary search ...............
this was asked in the interview

Answer Posted / shruti

In binary search , we have sorted array.

Hence the last number in the array is the largest number
among the given list.. :-)


Ur interviewer has to be very intelligent.. :-)
Gud ques though..

Is This Answer Correct ?    18 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is main return c?

523


Can you please explain the difference between syntax vs logical error?

699


There seem to be a few missing operators ..

621


What is structure in c explain with example?

643


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1484






What are the loops in c?

597


Can we use any name in place of argv and argc as command line arguments?

612


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

677


What happens if header file is included twice?

657


Why is c so powerful?

691


Which driver is a pure java driver

996


How can you convert integers to binary or hexadecimal?

622


What is else if ladder?

614


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2253


Explain how do you determine a file’s attributes?

596