You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Answer to question 2.2 says - A linked list because Lots of inserts are happening (servers
adding orders), which linked lists excel at. You don’t need search
or random access (what arrays excel at), because the chefs always
take the first order off the queue.
Isn't in queue insert always happens at last and array would be better choice ?
Or this answer is driven by considering factor - "what if required space is not available in existing contiguous block ? "
The text was updated successfully, but these errors were encountered:
Answer to question 2.2 says - A linked list because Lots of inserts are happening (servers
adding orders), which linked lists excel at. You don’t need search
or random access (what arrays excel at), because the chefs always
take the first order off the queue.
Isn't in queue insert always happens at last and array would be better choice ?
Or this answer is driven by considering factor - "what if required space is not available in existing contiguous block ? "
The text was updated successfully, but these errors were encountered: