There is a array of 99 cells and we have to enter 1-100
elements in it , no two elements would repeat , so the is one
no. missing because 99 cells and 1-100 nos. so we had to
implement a function to find that missing no.
Answer Posted / shiva sahu
Get the sum of numbers
total = n*(n+1)/2
Subtract all the numbers from sum and
you will get the missing number.
this is not mine,but this ans is right
| Is This Answer Correct ? | 22 Yes | 0 No |
Post New Answer View All Answers
What do you mean by public protected and private in c++?
what is oops and list its features in c++?
What are abstract data types in c++?
Will c++ be replaced?
Explain some examples of operator overloading?
What operators can you overload in c++?
What is a storage class?
What is the use of turbo c++?
Write about the use of the virtual destructor?
which of the following is not an secondary constant a) array b) real c) union
What is c++ array?
What is the difference between a baller and a reference in C++?
Write about the various sections of the executable image?
What do you mean by function overriding & function overloading in c++?
Do class method definitions?