Skip to content
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

无穷大值∞的问题 - 可汗的个人小站 #10

Open
Imyukehan opened this issue Aug 17, 2023 · 0 comments
Open

无穷大值∞的问题 - 可汗的个人小站 #10

Imyukehan opened this issue Aug 17, 2023 · 0 comments

Comments

@Imyukehan
Copy link
Owner

https://blog.khan.moe/2018/05/14/%E6%97%A0%E7%A9%B7%E5%A4%A7%E5%80%BC%E2%88%9E%E7%9A%84%E9%97%AE%E9%A2%98/

在算法题中,经常用到∞作为值,而C/C++是没有无穷大值的,之前是模仿网上一些代码,将INF设为0x7fffffff,这是32-bit int 的最大值214748367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant