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

1168. optimize water distribution in a village python解法超出时间限制 #219

Open
xuxingya opened this issue Oct 30, 2019 · 10 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@xuxingya
Copy link

xuxingya commented Oct 30, 2019

虽然用Kruskal算法没有错,但实际在leetcode跑test case会超时。

@azl397985856
Copy link
Owner

待验证

@xuxingya
Copy link
Author

        def find(x):
            tmp = []
            while x!=union_find[x]:
                tmp.append(x)
                x = union_find[x]
            for i in tmp:
                union_find[i] = x
            return x

把find方法替换成上面的就好。

@azl397985856 azl397985856 added the bug Something isn't working label Nov 1, 2019
@stale
Copy link

stale bot commented Dec 31, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 31, 2019
@azl397985856 azl397985856 added the help wanted Extra attention is needed label Dec 31, 2019
@stale stale bot removed the stale label Dec 31, 2019
@rajat81
Copy link

rajat81 commented Sep 16, 2022

can i fix this? @azl397985856

@azl397985856
Copy link
Owner

@rajat81 of course

@imguptaharsh
Copy link

hey, is this issue still open?

@cherie-wuyajun
Copy link

cherie-wuyajun commented Oct 26, 2023 via email

@fyyzkd
Copy link

fyyzkd commented Oct 26, 2023 via email

@xiaosisong
Copy link

xiaosisong commented Oct 26, 2023 via email

@azl397985856
Copy link
Owner

hey, is this issue still open?

yes. Why I didn't close it is that I can't verify it now. because it's a member-only problem now. So anyone help me to verify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants
@cherie-wuyajun @azl397985856 @xuxingya @rajat81 @fyyzkd @xiaosisong @imguptaharsh and others