Which implementation of Stack do you use in Java Stack or LinkedList?

  • 0

    When you are solving a problem in Java and you need to use Stack, which built in implementation do you use. I know of two in collection framework, Stack(Child class of Vector) and LinkedList.

    What do you use? and Why?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.