We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
题目明确指出不能用64位存储了,leetcode官方给出的代码返回值应该是int32才对。我了解到int类型是根据你的操作系统的位数决定的,而且按照作者您写的代码,if条件判断的时候是已经超出了不要,才返回0。而用int32,根本不能超出,否则会溢出,变随机数了。参考leetcode官方题解。用了math.Min32/10
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
题目明确指出不能用64位存储了,leetcode官方给出的代码返回值应该是int32才对。我了解到int类型是根据你的操作系统的位数决定的,而且按照作者您写的代码,if条件判断的时候是已经超出了不要,才返回0。而用int32,根本不能超出,否则会溢出,变随机数了。参考leetcode官方题解。用了math.Min32/10
The text was updated successfully, but these errors were encountered: