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


show that among any group of five (not necessary consecutive
) integers, there are two with the same remainder when
divided by 4.



show that among any group of five (not necessary consecutive ) integers, there are two with the sam..

Answer / lalala

generalized pigeon principle: If N objects are placed into k
boxes, then there is at least one box containing at least (ceiling) N/k objects.

let k = 4 ;
find N:

N/4 = 2 , N= 5, in order to get the answer 2..

Is This Answer Correct ?    17 Yes 19 No

Post New Answer

More C++ General Interview Questions

Define a way other than using the keyword inline to make a function inline?

1 Answers  


What is endianness?

0 Answers  


What is setbase c++?

0 Answers  


How many ways are there to initialize an int with a constant?

1 Answers  


What does iomanip mean in c++?

0 Answers  


What is the use of seekg in c++?

0 Answers  


which operator is used for performing an exponential operation a) > b) ^ c) none

0 Answers  


Can we use resume in error handling i.e. in the catch block

5 Answers   Infosys,


What are the various storage classes in C++?

0 Answers   Fidelity,


Explain how overloading takes place in c++?

0 Answers  


What is an html tag?

0 Answers  


What are the types of STL containers?

4 Answers  


Categories