Skip to content

Conversation

@rihib
Copy link
Owner

@rihib rihib commented Aug 31, 2024

Best Time to Buy and Sell Stockを解きました。レビューをお願いいたします。

問題:https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
言語:Go

すでに解いている方々:
colorbox/leetcode#6
hayashi-ay/leetcode#52
shining-ai/leetcode#37
kzhra/Grind41#4
erutako/leetcode#3
sakupan102/arai60-practice#38
fhiyo/leetcode#38
rossy0213/leetcode#22
Yoshiki-Iwasa/Arai60#52

Kadaneアルゴリズムという方法でも解けるらしい。常識の範疇には入ってないとのこと。
https://discord.com/channels/1084280443945353267/1206101582861697046/1207405733667410051
https://en.wikipedia.org/wiki/Maximum_subarray_problem

Copy link

@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.

良いと思います!

@rihib rihib merged commit a0b6e81 into main Sep 23, 2024
@rihib rihib deleted the best_time_to_buy_and_sell_stock branch September 23, 2024 13:41
rihib added a commit that referenced this pull request Mar 31, 2025
rihib added a commit that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants