Accounts Merge

Problem: Accounts Merge

You are given a list of accounts, where each account has the form:

[name, email1, email2, ...]

Two accounts belong to the same person and must be merged if th...

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: