Normalize Nested Merchant Names in Loan Records
Given merchant-name mappings and a list of loan records, normalize the merchant name in every loan record to its top-level (root) business name.
Each merchant mapping entry has the form:
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:
