Skip to content

Blog

LeetCode: 121-Best Time to Buy and Sell Stock 解題紀錄

You are given an array prices where prices[i] is the price of a given stock on the ith day.

You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock.

Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.
Read More »LeetCode: 121-Best Time to Buy and Sell Stock 解題紀錄

[MacOS] 使用 Scroll Reverser 軟體將觸控軌跡板與滑鼠的滾輪方向分開設定

剛接觸 Mac OS 時,想必都會不習慣 Mac OS 的滑鼠滾輪滾動方向吧!畢竟在 Windows 當中,大部分滑鼠滾輪的設定應該都是『往上滾動使頁面往上移動』、『往下滾動使頁面往下移動』。然而,在 Mac OS 當中卻剛好相反。

Read More »[MacOS] 使用 Scroll Reverser 軟體將觸控軌跡板與滑鼠的滾輪方向分開設定