Can't resist those little algorithmic Chinese problems. Below, from
my Facebook feed:
https://www.facebook.com/share/v/1DPgbmfhUD/
So what is the logic underlying this procedure. If only one numberhas to
change signs, then the difference between the actual value of all the numbers
and the desired sum has to be the difference between these two divided by
two. Why, because goign from positive to negative is actually doube the absolute
value the number represents: from the number to zero, and from zero to the
negative value. We have our traitor!!
No comments:
Post a Comment