I think they are very similar...And when do we need to use stack or queue, why not just use ArrayList or LinkedList to replace them?
I think they are very similar...And when do we need to use stack or queue, why not just use ArrayList or LinkedList to replace them?