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
Is c is a procedural language?
Can we add pointers together?
What does return 1 means in c?
explain how do you use macro?
List the different types of c tokens?
Write a program to reverse a linked list in c.
Describe explain how arrays can be passed to a user defined function
What are the 4 types of unions?
When we use void main and int main?
When can you use a pointer with a function?
What is static memory allocation?
Explain how to reverse singly link list.
What is the return type of sizeof?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Explain how do you override a defined macro?