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.
Answers were Sorted based on User's Feedback
Answer / amty
Get the sum of numbers
total = n*(n+1)/2
Subtract all the numbers from sum and
you will get the missing number.
| Is This Answer Correct ? | 41 Yes | 2 No |
Answer / 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 |
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Are iterators pointers?
What are put and get pointers?
given unsigned int ui1=3,ui2=7; what are the outputs of a)ui1 & ui2 b)ui1 && ui2 c)ui1 | ui2 d)ui1 || ui2 i also need the justification for the answers thank you
How a new element can be added or pushed in a stack?
What is expression parser in c++
Explain deep copy and a shallow copy?
What is the difference between "overloading" and "overridding"?
What are static type checking?
What is a driver program?