Monday, February 13, 2017

Divide Two Integers

Code ganker's anwer: http://blog.csdn.net/linhuanmars/article/details/20024907?locationNum=1&fps=1

For numeric questions, be aware of cases where input might be INTEGER.MAX_VALUE, INTEGER.MIN_VALUE, and abs(INTEGER.MIN_VALUE) =  INTEGER.MAX_VALUE + 1

And also the case where number might be positive or negative.