leetcode:consider max boundary and sign of integer