Maximum Profit from Stock Prices by Date and Ticker

Problem: Calculate Maximum Profit from Stock Prices by Date and Ticker

You are given a list of stock price records. Each record contains:

  • date: a date string in YYYY-MM-DD format
  • ticker...

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: