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 / 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


Please Help Members By Posting Answers For Below Questions

What is a syntax in c++?

1169


what is data encapsulation in C++?

1077


What are compilers in c++?

1076


What is decltype c++?

1007


Is there a sort function in c++?

1008


What is the difference between global int and static int declaration?

1074


Why is standard template library used?

1064


Explain unexpected() function?

1115


How many characters are recognized by ANSI C++?

1430


What is std :: flush?

1083


Can we delete this pointer in c++?

1229


Implement stack operations with pointers with appropriate exception checks.

990


Is there a c++ certification?

1069


Mention the purpose of istream class?

1117


Explain the difference between using macro and inline functions?

1137