Frage im Vorstellungsgespräch bei NVIDIA

Implement Stack using array Round 4 Q2

Antwort im Vorstellungsgespräch

Anonym

7. Dez. 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