Bloomberg Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Implement RotatingFileSink in hierarchy
You are given an existing Python 3.10 codebase with an abstract base class RecordSink (from abc import ABC, abstractmethod) that defines open() -> Non...
Describe leading an end-to-end client project
You are in a behavioral interview for a software engineering role. The interviewer asks you to discuss a full‑stack project you led end‑to‑end for a r...
Solve two array and string problems
You will solve two independent coding tasks. Problem 1: Generate All Subsets of a Set You are given an integer array nums containing n distinct elemen...
Design in-memory trade subscription processor
You are asked to design and implement the internal logic of an in-memory trade subscription processor in C++. A simplified interface is provided: `cpp...
Implement anagram check and odd-even linked list
You are given two independent coding tasks. Task 1: Check if two strings are anagrams Implement a function that determines whether two given strings a...
Design variable-size LRU cache
Implement an in-memory cache with least-recently-used eviction where each entry has a variable size in bytes. The cache exposes set(key, value, size),...
Write PostgreSQL string-manipulation query
You are given a PostgreSQL table clickstream(session_id TEXT, page TEXT, query TEXT, ts TIMESTAMP). The page column contains full URLs like 'https://s...
Group words into anagram lists
Given an array of strings, group the words into lists of anagrams and return the collection of groups in any order. For example, ["abc", "cab", "edf"]...
Solve string dictionary and tree ordering
Part A — One-edit dictionary: Build a data structure supporting build(words: List[str]) and search(query: str) -> bool that returns true if and only i...
Design a packet reassembler API
Design a PacketAssembler API for Streaming Fragments Context and Assumptions - You are building a small component that assembles packets from a byte s...
Count islands and implement BFS variant
Given a 2D grid of characters '1' (land) and '0' (water), count the number of distinct land regions where connectivity is four-directional (up, down, ...
Find root from child adjacency lists
You're given an unordered list describing a rooted n-ary tree. Each item is a record of the form {id: int, children: set<int>} listing a node's direct...
Write Postgres string parsing and aggregation query
You are given a PostgreSQL table events(user_id TEXT, raw TEXT) where raw stores pipe-delimited key=value pairs, for example 'user=U1|country=US|ts=20...
Design auth, session security, and top-N users
Web App Design: Authentication, Security, and Top-N Active Users Context: Build a browser-based web application where a user signs in and the page dis...
Describe domain-aligned experiences and impact
Behavioral Prompt: Relevant Past Projects and 90-Day Impact Context Software Engineer — Technical Screen (Behavioral & Leadership). Prompt Choose one ...
Count subarrays with product under target
Given an array of positive integers nums and an integer T > 1, return the number of contiguous subarrays whose product is strictly less than T. Provid...
Explain Kafka partitions and delivery semantics
Kafka partitions, replication, consumer groups, and delivery guarantees Context You are designing and evaluating a Kafka-based data pipeline and need ...
Check near-palindrome with one deletion
Given a string s, determine if it can become a palindrome after deleting at most one character. Return true or false and provide time and space comple...
Implement classes within an abstract Python framework
You are given an existing Python codebase (~200 lines shown) that defines an abstract base class DataProcessor with abstract methods load(self), trans...
Find maximum cable length by cutting
You are given N cables with integer lengths and a target K. Cut the cables into pieces of equal integer length L to produce at least K pieces; maximiz...