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 is binary search in c++?
List down the guideline that should be followed while using friend function.
What is the difference between a definition and a declaration?
How many characters are recognized by ANSI C++?
How to change constant values?
Discuss the possibilities related to the termination of a program before entering the mainq method?
What is the rule of three?
What is a multiset c++?
What are the various compound assignment operators in c++?
Is c better than c++?
When there is a global variable and local variable with the same name, how will you access the global variable?
Should a constructor be public or private?