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 |
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What is implicit conversion/coercion in c++?
How to write a program such that it will delete itself after exectution?
Write about a nested class and mention its use?
write a programming using for loop in c++ to generate diamond trangel?
What is the use of ‘using’ declaration?
In the derived class, which data member of the base class are visible?
What is the use of endl in c++ give an example?
What is the Diffrence between a "assignment operator" and a "copy constructor"?
Is c++ platform dependent?
What is the latest c++ version?
What operators can you overload in c++?