Frage im Vorstellungsgespräch bei WealthOS

Which is best to implement a stack, list or array?

Antwort im Vorstellungsgespräch

Anonym

13. Juli 2024

Best one is list. Since it's dynamic memmory allocation we can push,pop efficiently. Also using arrays we can implement stack. But it is static. Arrays are immutable. It is something behind as we using lists for it.