Bloomberg LP Interview Questions
- 0of 0 votes
AnswersWhat's the use of concurrency list in java? What are various locking mechanism in java?
- Tom Walker June 07, 2015 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Coding Threads - -1of 1 vote
AnswerWrite code for reader writer (multi threading)
- Tom Walker June 07, 2015 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Algorithm Threads - -1of 1 vote
AnswerHow would you instantiate/start/stop thread in java.
- Tom Walker June 07, 2015 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Algorithm Threads - -1of 1 vote
AnswersExplain diff between thread vs process.
- Tom Walker June 07, 2015 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Algorithm Threads - -1of 1 vote
AnswersI think Bloomberg heavily expects candidates to have good knowledge of Multithreading concepts as they work in financial data.
- Tom Walker June 07, 2015 in United States
Explain multithreading.| Report Duplicate | Flag | PURGE
Bloomberg LP Algorithm Threads - 1of 1 vote
AnswersWrite a method that takes the root of a tree as input and check if the tree is a Binary Search Tree (BST).
- nikamirulmukmeen March 19, 2015 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Software Developer Algorithm - 1of 1 vote
AnswersGiven a sorted array of integers, using the same array, shuffle the integers to have unique elements and return the index.
- nikamirulmukmeen March 19, 2015 in United States
Sample input : [3, 3, 4, 5, 5, 6, 7, 7, 7]
Sample output : [3, 4, 5, 6, 7, X, X, X, X]
In this case, it returns an index of 4.
The elements in the array after that index is negligible (don't care what value it is).| Report Duplicate | Flag | PURGE
Bloomberg LP Software Developer Problem Solving - 0of 0 votes
AnswersIn C++, what's the difference between public and private? what's the purpose of this and please illustrate a design example with this.
- ycw March 07, 2015 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer C++ - 1of 1 vote
AnswersWrite a maxDepth function to find maximum depth of a binary tree. What is the time and space complexity of your function.
Given:
- naomi.lijing@googlemail.com February 27, 2015 in UKclass Tree { public Tree left; public Tree right; } int maxDepth(Tree head) {}
| Report Duplicate | Flag | PURGE
Bloomberg LP Software Developer - 1of 1 vote
AnswersYou are given an organization hierarchy tree (n-ary tree). Every employee (node) has some value (can be -ve or +ve). You have to host a party and have to invite employees such that the total value (summation of each node value) of all the employees is maximum.
- Rocky January 22, 2015 in United States
there is a rule: no one likes to see their bosses in the party. So you cant invite an employee's immediate boss or subordinate.
You can skip more than 1 level if it gives you maximum value.| Report Duplicate | Flag | PURGE
Bloomberg LP Intern - 0of 0 votes
AnswersGood day I just got a question which is the following
- answer seeker January 07, 2015 in United States
you have an vector like this
[JFK, LXA, SNA, RKJ, LXA, SNA]
each 2 group define a route. so,
JFK -> LXA
SNA -> RKJ
LXA -> SNA
Find the path from departure to destination. note: departure and destination are not known.
The final destination should be
JFK-> LXA -> SNA -> RKJ
The function signature is something like this
vector<string> findPath(vector<string> airports)
{
}
The airports (nodes) cannot be duplicated and the path should print all the airports (nodes)| Report Duplicate | Flag | PURGE
Bloomberg LP Applications Developer Algorithm - 0of 0 votes
AnswersGood day I just got a question which is the following
- answer seeker January 07, 2015 in United States
you have an vector like this
[JFK, LXA, SNA, RKJ, LXA, SNA]
each 2 group define a route. so,
JFK -> LXA
SNA -> RKJ
LXA -> SNA
Find the path from departure to destination. note: departure and destination are not known.
The final destination should be
JFK-> LXA -> SNA -> RKJ
The function signature is something like this
vector<string> findPath(vector<string> airports)
{
}
The needed the full path from departure to destination, and you can only pass by one point only once.
Thanks!| Report Duplicate | Flag | PURGE
Bloomberg LP Applications Developer Algorithm - 0of 0 votes
AnswersImplement strcmp function of stdlib.h library without using any standard library.
- pbsureja December 19, 2014 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer Intern C - 0of 0 votes
AnswersImplement a Singleton class in java? How will this help?
- pbsureja December 19, 2014 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer Intern Java - 1of 1 vote
AnswersSuppose that there is a database table, and four processes read the table at the same time. But, only one process is allowed to read the same row of the table at the same time. How do you enforce the exclusive-read on a row?
- joeyk December 06, 2014 in United States for Supply Chain| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Database - 1of 1 vote
AnswersWhat is Encapsulation? What is inheritance? When and Why should you use the inheritance?
- joeyk December 06, 2014 in United States for Supply Chain| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
AnswersWhat is the Abstract class? What is the difference between an abstract class and an interface? When should you use an abstract class instead of interface?
- joeyk December 06, 2014 in United States for Supply Chain| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C# - 0of 0 votes
AnswersSuppose that Amazon web site has two data tables: One is the customer table. The other is the order table. How do you find the customers who never order anything?
- joeyk December 06, 2014 in United States for Supply Chain| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer SQL - 1of 1 vote
Answersan bacteria grows at the speed that it will double its volume per minute. If you put it in a jar, it will fill the jar in one hour. how long will it take to fill a half of the jar?
- joeyk December 06, 2014 in United States for Supply Chain| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Brain Teasers - 1of 1 vote
AnswersA binary tree represent an organization hierarchy. The root node is the CEO and etc. design a algorithm to print the tree level by level.
- joeyk December 06, 2014 in United States for Supply Chain| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Data Structures - 0of 0 votes
Answerst's laundry day, and, as usual, you've been putting this off for quite some time. Also, unfortunately, you lacked the foresight to actually ensure all your dirty laundry stayed in your hamper whilst it accumulated (what? we can't ALL be underwear basketball pros!).
- xyz_coder November 15, 2014 in United States
Begrudgingly, you've gathered up all the clothing you could find and sent them through the wash. Now you have a disheveled pile of clean, albiet disorganized, accoutrements. You come to the realization that you probably lost some items in the fray, so now it's time to fold and figure out what's gone missing!
To get a good idea of the state of your wardrobe, count up the number of distinct shirts, pants, and underwear you have as you go through the laundry. Also pair up your socks, noting the number of pairs of each kind of sock and if there are any lonely souls (single (and ready to mingle) socks).
Input Specifications
Each article of clothing will have its own separate line. You have a penchant for hoarding, so there is no guarantee as to the number of pieces, but you can assure yourself that each article can be easily categorized by description (name).
Articles of clothing will be fed in as line-delimited list. See below for examples.
Output Specifications
Output should be an alphabetically (case-insensitive) sorted, line-delimited list of the articles of clothing along with their count. Each field (count, category) should be separated by a pipe (|). If you come across a sock without a soulmate, the count should be designated by a 0 (zero). Socks that are in pairs should be on separate lines from the socks of the same category without pairs, and should come before the pairless sock. See below for examples.
Sample Input/Output
INPUT
white shirt
polka dot sock
red sock
superhero shirt
torn jeans
polka dot sock
white shirt
polka dot sock
OUTPUT
1|polka dot sock
0|polka dot sock
0|red sock
1|superhero shirt
1|torn jeans
2|white shirt
EXPLANATION
As described above in the input and output specifications.| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Algorithm - 2of 2 votes
Answersgiven n > 0 fair dice with m > 0 "sides", write an function that returns a histogram of the frequency of the result of dice rolls. For example, for two dice, each with three sides, the results are:
- Aurelius October 29, 2014 in United States for BVal
(1, 1) -> 2
(1, 2) -> 3
(1, 3) -> 4
(2, 1) -> 3
(2, 2) -> 4
(2, 3) -> 5
(3, 1) -> 4
(3, 2) -> 5
(3, 3) -> 6
And the function should return:
2: 1
3: 2
4: 3
5: 2
6: 1| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Coding - 1of 1 vote
AnswersWrite a method that takes an int as input and outputs an int with the digits of the input in reverse, i.e. 12345 -> 54321.
- emailjunk94 September 23, 2014 in United States| Report Duplicate | Flag | PURGE
Bloomberg LP Math & Computation Intern - 0of 0 votes
Answersin a Hadoop-like system, how do we manage multiple nodes collaborating together without having a master node?
- Itcecsa August 13, 2014 in United States
my answer was running a back end job to randomly select a node to be a master node; and whenever the master node goes down, the backend job select a new node.| Report Duplicate | Flag | PURGE
Bloomberg LP Senior Software Development Engineer System Design - 0of 0 votes
AnswersGiven the following structure Record and we have million of records on disk.
- Itcecsa August 13, 2014 in United States
struct Record
{
char[257] name;
int startTime;
char[257] description;
}
Now we want to keep a in-memory cache which is represented in class ManageRecords to perform 2 methods GetDesriptions and GetRecords. Given that we have very big memory and we can use any data structure so that the 2 methods can be performed really quick. Here are the questions:
1. what should be the return type for method GetDesriptions
2. what should be the return type for method GetRecords
3. what data structure should we use in the private part as commented out below
class ManageRecords
{
public:
ManageRecords();
? GetDesriptions(char[] name);
? GetRecords(int begin, int end); //do a range search based on startTime of structure Record
private:
// what data strcture should we use here?
}| Report Duplicate | Flag | PURGE
Bloomberg LP Senior Software Development Engineer Algorithm - 1of 1 vote
AnswersIf you run the same program twice, what section would be shared in the memory?
- farzanmoofty August 12, 2014 in United States for Price history
Follow up, is the text portion of memory share? Why not?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ Coding Operating System - 1of 1 vote
AnswersWhat do you do if your program does a core dump?
- farzanmoofty August 12, 2014 in United States for Price history
(Analyze code dump)
Name all the possible ways a program would do core dump.| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C C++ Compiler - 0of 0 votes
AnswersWrite a function that accepts an n-dimension array and prints its values--For array of any dimension.
- farzanmoofty August 12, 2014 in United States for Price history
What is the layout of multi-dimensional array in the memory?| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Arrays C++ Coding - 1of 1 vote
AnswersGiven a number n, write a function that writes a Fibonacci sequence to number n.
- farzanmoofty August 12, 2014 in United States for Price history| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ Coding - 0of 0 votes
AnswersIt was part of a bigger question --a large piece of code.
- farzanmoofty August 12, 2014 in United States for Price history
Implement << operator. What are the differences of implementation as a member function and a non-member function| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ Coding Object Oriented Design