Skip to content

add: Best Time to Buy and Sell Stock II#25

Open
rossy0213 wants to merge 1 commit intomainfrom
arai60-39
Open

add: Best Time to Buy and Sell Stock II#25
rossy0213 wants to merge 1 commit intomainfrom
arai60-39

Conversation

@rossy0213
Copy link
Copy Markdown
Owner

profit += prices[i] - prices[i - 1]
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

この空行は不要かと思います。

Copy link
Copy Markdown

@fhiyo fhiyo left a comment

Choose a reason for hiding this comment

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

いいと思います。別解を考えてもいいかもなと思いました。

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.

3 participants