Problem 714 · Medium

Best Time to Buy and Sell Stock with Transaction Fee

Maximize profit from unlimited trades where each completed sale pays a fee. The visual tracks two running states, holding a share or holding cash.

Open the interactive visualisation