Software Engineer • Junior-Level
Software Engineer • Junior-Level
High QualityPrep Other Coding Questions Asked by Bloomberg
Continue with targeted prep from Bloomberg's coding question bank.
Interview Summary
I completed two AI-assisted coding interviews with Bloomberg for its 2027 New Grad Software Engineer position. Both rounds involved debugging and improving existing codebases rather than solving traditional LeetCode problems.
The first round focused on a stock exchange order book, including order processing bugs, input validation, and data structure choices. The second involved a multi-tenant game matchmaking engine with issues related to skill-based matching and concurrency. The second round had four engineering tickets, but I only managed to work through the first two. Overall, the interviews were challenging, and I did not pass the process.
Interview Details
Round 1 — AI-Assisted Coding: Stock Exchange Order Book
The first interview provided an existing implementation of a simplified stock exchange. The system contained a StockExchange class responsible for managing buy and sell orders. The core data structure was an internal order book: _orderbook: dict[str, list[Order]]. Each key represented a stock ticker, and its corresponding value contained a list of orders associated with that ticker.
The application supported two primary operations:
- Sell: Submit a sell order with a stock ticker, quantity, and price, then add the order to the order book.
- Buy: Purchase a specified quantity of shares using the cheapest available sell orders.
The task was to inspect the existing implementation, identify bugs, and correct them using AI assistance.
Part 1 — Identify and Fix Order Processing Bugs
Several issues existed in the provided codebase.
- The system did not properly check whether a requested ticker existed in the order book before performing certain operations.
- The implementation had a bug when a purchase consumed only part of an existing sell order. The remaining quantity and the order book's state were not handled correctly, potentially resulting in incorrect order processing.
- The function responsible for generating order identifiers failed to increment its internal counter. This could cause multiple orders to receive the same identifier.
- The buy and sell operations did not properly reject invalid inputs, including zero or negative values and other unsupported order parameters.
- The system represented stock prices using floating-point values. This introduced potential rounding and precision issues when handling financial amounts.
Part 2 — Review Data Structure Choices and Performance
Beyond fixing functional bugs, the interviewer expected me to evaluate the implementation's design and
Unlock Full Details
Create a free account to unlock this interview experience report.