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
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Can the sizeof operator be used to tell the size of an array passed to a function?
Explain the use of bit fieild.
What is the use of ?: Operator?
What is a pointer variable in c language?
How can I avoid the abort, retry, fail messages?
write a program to find the given number is prime or not
Can we initialize extern variable in c?
Do you know what are the properties of union in c?
Explain the use of 'auto' keyword in c programming?
List some of the static data structures in C?
How the c program is executed?
In C language what is a 'dangling pointer'?
What is the difference between strcpy() and memcpy() function in c programming?