Quote:
Originally Posted by robinsonb5
OK this one works, I think:
|
No, it does not
.
EDIT:
The problem with your algorithm is that in any case (for both the addition and the subtraction) you are doing it on
signed values, while what you are asked to do is to do it for
unsigned values.
That's why in my algorithm I have to first change it, if needed, for
both, and
then make a comparison.