New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LeetCode第七题Reverse-Integer #266
Comments
呵呵,来信收到,谢谢
|
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
题目明确指出不能用64位存储了,leetcode官方给出的代码返回值应该是int32才对。我了解到int类型是根据你的操作系统的位数决定的,而且按照作者您写的代码,if条件判断的时候是已经超出了不要,才返回0。而用int32,根本不能超出,否则会溢出,变随机数了。参考leetcode官方题解。用了math.Min32/10
The text was updated successfully, but these errors were encountered: