How could a stock price be 0?

  • 1

    For some of the test cases, how can a stock be priced at 0????????

  • 0

    @zhnzhang61 Because the creators of the question apparently don't know how the stock market works. In actual trading, it's all about the ratio of sell / buy price. So you could buy at "0", sell at 1 and have $infinity. Instead, this question uses the difference. 1-0 = 1.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.