Find Directly Linked Merchants by Shared Attributes

Given a collection of merchants and their attributes, as well as a target merchantId, return all other merchants that are directly linked to the target.

For this problem, two merchants are dire...

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: