Skip to content

Conversation

@argondev22
Copy link
Owner

Status

Accepted

Runtime

2 ms (Beats 78.68%)

Order

O()

Memory

66.11MB (Beats 37.88%)

Order

O()

Time Taken

7 m 58 s

@argondev22 argondev22 self-assigned this Nov 9, 2025
Copilot AI review requested due to automatic review settings November 9, 2025 14:00
@argondev22 argondev22 linked an issue Nov 9, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

LeetCode 121「Best Time to Buy and Sell Stock」問題の新しい解答実装を追加するPRです。株価の配列から最大利益を計算するアルゴリズムを実装しています。

  • 一度のパスで配列を走査し、最小価格と最大利益を追跡する効率的な解法
  • 時間計算量O(n)、空間計算量O(1)の最適な実装

@argondev22 argondev22 moved this to Doing in My Learnings Nov 9, 2025
@argondev22 argondev22 merged commit 1696de2 into main Nov 9, 2025
6 checks passed
@argondev22 argondev22 deleted the 20251109/19-121-best-time-to-buy-and-sell-stock branch November 9, 2025 14:20
@github-project-automation github-project-automation bot moved this from Doing to Done in My Learnings Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

121. Best Time to Buy and Sell Stock

2 participants