Frage im Vorstellungsgespräch bei Amazon

How do you implement 2 stacks in a Fixed size array?

Antwort im Vorstellungsgespräch

Anonym

17. Juli 2019

by taking end indices as bottom and top..Updating top on Push.. and Check overflow on top(stack1)==top(stack2)