Bloomberg LP Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

External events are asynchronous and should to be handled in a new thread fto allow original thread to run to completion.

Delegates mirror delegation in Java. Java handles most events with a thread.

- Jack April 18, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Interviewer> Assume we have a million records with Name, Address, Ph No.. which data structure would we use for storing?
My Answere> Initially i said Linked List and he asked me what would be the time complexity if need to search an element.... i said best case O(1) and worst case would be O(n)... i said i would use Hash Table since it's quicker than linked list.

Interviewer> What's the time complexity of HashTable?
My Answere> O(1)

Interviewer> Assume we have to use HashTable, and we need to search with Name, how would we know what's the key value? So we need to search for the key itself, then would'nt the Time Complexity would be O(n) again? So then what's the difference between linked list and hashtable?
My Answere> ??

- Karthik Srinivasan April 19, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The difference b/w a linked list and hashtable is the user's perspective. Hashtable is O(1) because a hash function takes care of the mapping from key to value. Linked list is O(n) because of the traversal left/right. The user never searches for the key itself directly. That's not abstraction and an internal data structure is abstracted for user flexibility. This gets into why OO is so useful.

- Jack April 20, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

For Q1,

A hash data structure would be nice in this case. I would ask if the Names are unique? If not, we need to handle name collision which means rehashing. If yes, then the problem is simplified.

- Jack April 20, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Handling collision by linear probing is inefficient. To rehash, you'd need more info than just a name to form a primary key. This is similar to the relational model.

- Jack April 20, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Multilevel indexing, B trees

- Suhaib January 04, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

mergesort

- htna December 02, 2008 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More