bloomberg | Intern | Interview Experience
Interview Date: Not specified
Result: Not specified
Difficulty: Not specified
Interview Process
The interview consisted of a single round where the interviewer was friendly and allowed the candidate to complete their answers despite some time constraints. The candidate was asked to explain a specific project from their resume.
Technical Questions
- Design a Data Structure
- Operations:
- Add a number to the set.
- Remove a number from the set.
- Get a random element from the set, ensuring each element has the same probability of being returned.
- Example:
Suppose the initial set is empty. add(1) add(2) add(3) random() -> May return 1, 2, or 3 remove(2) random() -> May return 1 or 3 - Constraints: At least 1 operation, up to 10,000 operations.
- Operations:
Tips & Insights
Be prepared to discuss specific projects and demonstrate your problem-solving approach during the interview.