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
What do you mean by a sequential access file?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is an arrays?
Is that possible to store 32768 in an int data type variable?
How main function is called in c?
What type is sizeof?
Explain what header files do I need in order to define the standard library functions I use?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
When is the “void” keyword used in a function?
Explain the binary height balanced tree?
can anyone suggest some site name..where i can get some good data structure puzzles???
a value that does not change during program execution a) variabe b) argument c) parameter d) none
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is a structure and why it is used?