Stock Analysis

Problem Overview

  • From multiple data sources ordered by increasing preference, determine the final value for each key; later sources override earlier ones while keeping keys in the order first seen.
  • Input: String[][] sources (each row is a source); Output: consolidated key-value list; constraints n: 1–99, p: 1–999.
  • Context: Data/stock analysis consolidation of parameters like ratings from different providers.
  • Asked in Goldman interviews; a coding interview interview question problem focused on data merging behavior.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: