← 返回 stripe 的题目列表Find linked merchants by ID
类型:online_judge
Given a list of merchants, each represented by a dictionary with fields id, name, email, and phone, and a merchant's id, find all merchants that match at least one field with the given merchant.
Example
Input
{'id': 1, 'name': 'Alice', 'email': 'alice@example.com', 'phone': '123'}, {'id': 2, 'name': 'Bob', 'email': 'bob@example.com', 'phone': '456'}, {'id': 3, 'name': 'Alice', 'email': 'alice2@example.com', 'phone': '789'}, {'id': 4, 'name': 'Charlie', 'email': 'charlie@example.com', 'phone': '123'}|1