Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

修改problems/kamacoder/0044.开发商购买土地.md中的python优化暴力代码 #2967

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

Open
foreverxiaoyu wants to merge 1 commit into youngyangyang04:master
base: master
Choose a base branch
Loading
from foreverxiaoyu:master

Conversation

Copy link

@foreverxiaoyu foreverxiaoyu commented Aug 31, 2025

无需遍历到最后一行(列),因为切分线始终在行(列)之间。
对于行和列切分那两层循环,时间复杂度从O(2nm)到O((n-1)m+n(m-1)),且取消了if判断,更加通俗易懂,执行效率高点。

无需遍历到最后一行,因为切分线始终在行之间。
对于行和列切分那两层循环,时间复杂度从O(2nm)到O((n-1)m+n(m-1),且取消了if判断,更加通俗易懂,执行效率高点。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /