Moe T.

asked • 06/22/21

for data structure and algorithms

Write an algorithm that reads numbers from the screen and sorts them at the same time by using two stacks.


Patrick B.

Where are items inserted into the list.. beginning or end? Where are items deleted from the list.... beginning or end? Is the main list that contains the sorted numbers a stack or a queue?
Report

06/22/21

1 Expert Answer

By:

Patrick B. answered • 06/24/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.