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 Answers
+ 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