AlgoMaster Logo

Accounts Merge

accounts=[["John","j1@ex.com","j2@ex.com"],["John","j2@ex.com","j3@ex.com"],["Mary","m1@ex.com"]]
0 / 17
algomaster.io
Step:Given 3 accounts. Treat every email as a node and flood each component.