Meta logoMeta
Coding·20 minMembers

Best Time to Buy and Sell Stock

Members only

LC 121 — maximum profit from a single buy / sell of a stock price array. Asked in a recent E5 onsite coding round, with a follow-up extending to multiple transactions.

SWE
array
dp
greedy
easy
Frequency
Single report
Last asked
2026-05-16
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...