Maximum Profit from Unordered Stock Price Records

Problem: Compute Maximum Profit from Unordered Stock Price Records

You are given n stock price records. Each record contains:

  • date: a date in YYYY-MM-DD format
  • stock: a stock symbol w...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: