You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leetcode has added the new case for this problem, when overflow occurs, need to return INT_MAX, the current code can NOT be accepted. I adjust the return code as this and accepted.
long long ret = ((dividend^divisor) >> 31)?(-multi): multi;
if (ret > INT_MAX)
return INT_MAX;
else
return ret;
The text was updated successfully, but these errors were encountered:
Leetcode has added the new case for this problem, when overflow occurs, need to return INT_MAX, the current code can NOT be accepted. I adjust the return code as this and accepted.
The text was updated successfully, but these errors were encountered: