Confusion about the top solution.


  • 1
    F

    We are asked to design a stack, but the two top solutions build the stack based on the Stack object of JAVA. Is it okay to do that ? Can we build the stack based on other stacks?


Log in to reply
 

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