Sunday, November 20, 2011
Deleting integers numbers
You have a sequence of N integers and you randomly pick two of them. If they are both odd or both even then you remove them, if they are different you add an additional even number. Can you forecast what would be the final number left?
SOLUTION
You need to consider what is the starting N. Is it odd or is it even?
SOLUTION
You need to consider what is the starting N. Is it odd or is it even?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
[フレーム]