Domanda di colloquio di Atlassian

Implement a stack in Java

Risposta di colloquio

Anonimo

5 nov 2015

Just use an array and an integer to keep track of the current index in the 'stack'. They don't want the stack to be able to grow and shrink dynamically (so don't use a linked list) they just want it to be an array that works as a stack.