Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What do you mean by public protected and private in c++?

1065


what is oops and list its features in c++?

1059


What are abstract data types in c++?

986


Will c++ be replaced?

1047


Explain some examples of operator overloading?

1126


What operators can you overload in c++?

1045


What is a storage class?

1280


What is the use of turbo c++?

1054


Write about the use of the virtual destructor?

1009


which of the following is not an secondary constant a) array b) real c) union

1806


What is c++ array?

1126


What is the difference between a baller and a reference in C++?

1126


Write about the various sections of the executable image?

982


What do you mean by function overriding & function overloading in c++?

1194


Do class method definitions?

1050