Skip to content

53. Maximum Subarray - #142

Merged
BeokBeok merged 1 commit into
StudyFork:masterfrom
ddaeyeonkim:maximum-subarray
May 14, 2023
Merged

BeokBeok merged 1 commit into
StudyFork:masterfrom
ddaeyeonkim:maximum-subarray

Conversation

@ddaeyeonkim

Copy link
Copy Markdown
Collaborator
image

@ddaeyeonkim ddaeyeonkim self-assigned this May 13, 2023
@BeokBeok BeokBeok linked an issue May 13, 2023 that may be closed by this pull request

@BeokBeok BeokBeok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fun maxSubArray(nums: IntArray): Int {
var sum = nums[0]
var sub = 0
for (num in nums) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

오 저는 리스트에 결괏값을 담아서 구현했는데, 그럴 필요가 없겠네요. 👍

@BeokBeok
BeokBeok merged commit 52ddf89 into StudyFork:master May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

53. Maximum Subarray

2 participants