Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Equivalence Groups
Medium
Question
You are given an array of integers and an equivalence function equiv(x, y) that returns true if two values belong to the same group. Partition the array into equivalence classes using this function, preserving the order of elements within each group. Elements are assigned to the first group they are equivalent to.
...
Asked at:Bloomberg
More Bloomberg interview questions
- Densest Tree Levelmedium
- Uniform Stringeasy
- Tree Min Leaf Sumeasy
- Multi File Word Searchmedium
- Fuel Grid Navigationhard
- Dual Extremes Queuehard
- Stream Palindromemedium
- Hailstone Sequence Stepseasy
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.