Skip to content

121. Best Time to Buy and Sell Stock - #8

Open
tsadamor wants to merge 1 commit into
mainfrom
0121-best-time-to-buy-and-sell-stock
Open

121. Best Time to Buy and Sell Stock#8
tsadamor wants to merge 1 commit into
mainfrom
0121-best-time-to-buy-and-sell-stock

Conversation

@tsadamor

@tsadamor tsadamor commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Comment thread memo.md

return profit
```
- 線形探索になったので、時間計算量は`O(n)`、空間計算量は入力量にかかわらず`profit`と`current_buy`だけなのでO(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.

Comment thread memo.md
```

## Step3
上記コードを三回再現。

Copy link
Copy Markdown

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.

2 participants