Engineer I Interview Questions

6,848 engineer i interview questions shared by candidates

Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. All these operations of SpecialStack must be O(1). To implement SpecialStack, you should only use standard Stack data structure and no other data structure like arrays, list, etc.
avatar

Software Development Engineer I

Interviewed at Flipkart

3.8
May 21, 2016

Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. All these operations of SpecialStack must be O(1). To implement SpecialStack, you should only use standard Stack data structure and no other data structure like arrays, list, etc.

Viewing 21 - 30 interview questions

Glassdoor has 6,848 interview questions and reports from Engineer i interviews. Prepare for your interview. Get hired. Love your job.