Bloomberg LP Interview Question for Financial Software Developers






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

Linked list.. keep track of top element and the last element's next will be null..

- Akj December 28, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think it's up to you to answer this question. You can say whatever structure you prefer, if you sure you'll be able to explain how it should be used to implement stack. I use #include <stack> in C++ usually. As for other language (C#) I'd use the structure that has insert and pop operations in constant or logarithmic time.

- Leon January 06, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

linked list is the most suitable answer....

- RK January 08, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

basic structures to use are array or link list: using array then you have to maintain index to the current cell (top of stack) and also change size of array when necessary. using link list is more suitable, you add the new node to at the head or delete from the head: more efficient

- Koni October 23, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

std::stack<std::deque<type-of-your-choice>>

- Tim December 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The answer could be either Linkedlist or Array.

You wont use Array here because, you dont need random access to the elements in the stack which is the advantage of arrays over linked lists.

So, you go for linked lists, which impose no restrictions on the size of the stack.

- Mahesh February 11, 2010 | 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