show that among any group of five (not necessary consecutive
) integers, there are two with the same remainder when
divided by 4.
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 |
What is the size of integer variable?
why and when we can declar member fuction as a private in the class?
What are the stages in the development cycle?
Which field is used in c++?
Write about the use of the virtual destructor?
What does new do in c++?
Difference between Top down and bottom up approaches for a given project ?
14 Answers BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,
Why Pointers are not used in C++?
Explain deep copy?
What is a multimap c++?
Define namespace in c++?
What is input operator in c++?