Maximum Profit from Historical Stock Prices

Problem: Maximum Profit from Historical Stock Prices

You are given multiple historical stock price records. Each record contains:

  • date: a date in YYYY-MM-DD format
  • stock: the stock symb...

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: