NVIDIA interview question

Implement Stack using array Round 4 Q2

Interview Answer

Anonymous

7 Dec 2024

Discussed two approaches, 1. Divide stack in two equal parts, how push and pop will happen, limitation of this method 2. Using two pointer method stacks growing from front as well as end, discussed on condition on stack full and stack empty