← Morgan Stanley questions
CodingReported in a candidate post, Apr 2025

Implement a stack

Filed under Morgan Stanley · Also reported at Accenture, CodeNation, Conga

Implement a stack with push, pop, peek and is_empty. Decide how to store the data (array or linked list) and how to handle underflow (pop on empty) and overflow (push when full).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.