Skip to content

53. Maximum Subarray#27

Open
hiro111208 wants to merge 1 commit into
mainfrom
53-maximum-subarray
Open

53. Maximum Subarray#27
hiro111208 wants to merge 1 commit into
mainfrom
53-maximum-subarray

Conversation

@hiro111208
Copy link
Copy Markdown
Owner

This problem: 53. Maximum Subarray

Next problem: 213. House Robber II

current_sum += num
largest_sum = max(largest_sum, current_sum)
return largest_sum

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この問題、分割統治法でも解けるので興味があれば解いてみるのもいいと思います。
https://github.com/Manato110/LeetCode-arai60/pull/33/changes#diff-95305de1e9bf283c3d5bc14487393733af825dba9d588055983a75d4808d3ccaR113

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

Successfully merging this pull request may close these issues.

2 participants