Bloomberg Software Engineer Interview Questions
Practice the exact questions companies are asking right now.
Implement a simplified grep with extensible flags
Problem Implement a simplified version of grep that searches a text file and returns the lines that match a given query string. You should focus on cl...
Find invalid transactions in time-sorted input
Problem You are given a list of transaction records, already sorted in non-decreasing order by time. Each transaction is a string in the form: "name,t...
Generate all strings by expanding wildcards
Problem Given a string s consisting only of characters '0', '1', and '', replace every '' with either '0' or '1' and return all possible resulting bin...
Design a fair event registration queue API
Scenario Design an in-memory service (OOD-style) to manage registrations for an event where fairness means users are served strictly in the order they...
Answer core behavioral questions using STAR
Behavioral Questions Answer the following questions. Use concrete examples from your experience. 1. Tell me about a proud project. 2. How did you hand...
Count friend requests based on age rules
Problem You are given an array ages, where ages[i] is the age of the i-th person. A person of age A will send a friend request to a person of age B if...
Solve word path in grid and trapped water
You are given two independent programming tasks. --- Problem 1: Check if a word exists in a 2D character grid You are given a 2D grid board of charact...
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...
Answer multi-round grid and data-structure questions
You are given several independent interview-style coding questions. 1) Find first/last occurrence in sorted array (+ dynamic updates follow-ups) Given...
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...
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 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...
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...
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 ...
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...
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 ...
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"]...
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),...