+ 2
Can stack and Queue be also a type of array.
They seem similar are they ...?
1 Réponse
+ 6
Usually they are!
In Javascript, arrays even have .push(), .pop(), .shift() and .unshift(), so you can use them as stacks or queues.
They seem similar are they ...?