Bloomberg | Phone | Design Underground System

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2020-09-25Added By Anonymous
Source: Link
Company: Bloomberg
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Experience:
Position: New Grad 2021 Platform: Hackerrank Experience: Interviewer called 10 minutes early. After introductions, detailed the structure of interview - Resume walk, Hackerrank question, questions to the interviewer. Not so keen on seeing code compiled, as long as the psuedocode made sense. Had to ask many questions to clarify the input. Was asked only one question in Hackerrank. Question: There is a subway system with multiple stations. We need to calculate the average time taken to travel between 2 given stations, source and destination. There are 3 functions that needed to implement. swipeIn(), swipeOut(), avgTimeBetweenStations(source, destination). I was free to implement the swipeIn(), swipeOut() and in fact grilled on how would I implement those two and what data structures I use.
Comments