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 do you mean by funtion prototype?
Why is c++ is better than c?
Why is c++ so fast?
How to detect memory leaks in c++
What is the difference between "overloading" and "overridding"?
What are raw sockets, where they are efficient?
Can I learn c++ in a week?
What are c++ data types?
What is c++ good for?
Write about a nested class and mention its use?
What is the most common mistake on c++ and oo projects?
Discussion on error handling of C++ .