Bloomberg LP Interview Question
Financial Software DevelopersI 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.
Linked list.. keep track of top element and the last element's next will be null..
- Akj December 28, 2008