MLE: Google Preliminary

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-04-28Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown

Questions was we have n elements with 3 properties each we need to group the elements. If any one of the property is common those two element should be in same group. e.g.: elements = { "e1": ['red', 'circle', 'small'], "e2": ['blue', 'square', 'small'], "e3": ['green', 'triangle', 'large'], "e4": ['black', 'triangle', 'large'], } Output: [["e1", "e2"], ["e3", "e4"]]
Comments