← ALL NOTES
Array

714. Best Time to Buy and Sell Stock with Transaction Fee

Unlimited stock trades (hold at most one share at a time), but each completed transaction charges a fee; maximise profit. The clean model is a two-state machine: on any given day you're either…

Loading…