0
Queue management task
Why do we set size as 0 and reserve memory from the heap in the constructor Queue()? Doesn’t that mean that we’re going to have size 0 every time we create an object? https://code.sololearn.com/cuq3IyszKJ4s/?ref=app
2 Respostas
+ 1
Yes, each new instance of Queue would have zero item, and reserved 100 slots for its items.
+ 1
Ipang I din’t realize that’s for many queues, that was helpful, ty