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

heaptime.cpp siftup_堆上移函数函数 没有考虑到初始化为0的情况 #109

Open
jianKangS1 opened this issue May 24, 2024 · 3 comments

Comments

@jianKangS1
Copy link

image
改进后
image

@dream-jasmine
Copy link

6🤞

@UnsterblichW
Copy link

确实有点儿问题,我用gcc14.1 ,C++20 可以复现,楼主这个改动很有必要。
image

@pupilplay
Copy link

提问一下,就算修改之后,i==0时,j=(-1)/2得到的是0,导致i==0且j==0好像死循环了

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

No branches or pull requests

4 participants