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 / 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 |
Post New Answer View All Answers
What causes a runtime error c++?
Can c++ be faster than c?
Explain the scope of resolution operator.
How can I improve my c++ skills?
Differentiate between an inspector and a mutator ?
Explain the problem with overriding functions
Write a program which uses functions like strcmp(), strcpy()? etc
Is eclipse good for c++?
What is a flag in c++?
Is c++ vector dynamic?
What is c++ & why it is used?
Explain about templates of C++.
Why would you use pointers in c++?
What is a multimap c++?
How do you flush std cout?