Bloomberg 2023 SWE Interview Question
Anonymous User
1876

Hello I had a first interview with Bloomberg and did not pass. I thought about the possible solutions but I cannot figure out what the optimal solution is.

Design a module and insert a data looking like this.

(id:1, timestamp: 1pm, tags: ["us", "uk", "japan"])

You want to query all the data by passing in a tag and timestamp.

(tag: "us", start_time: "12pm", end_time: "2pm")

The module will read more than insert. Reading should be faster than inserting. What is the possible optimal solution that read is more optimized than insert? Thank you in advance

Comments (6)