Pregunta de entrevista de Microsoft

Implement a class Stack

Respuesta de la entrevista

Anónimo

19 de oct de 2016

Make an arrayList as a private variable with two methods. Push and Pop. Push would just add the element, pop would return and remove the most recent element using arr.get(arr.size()-1); and arr,remove(arr.size()-1).

2