Want to try solving this problem? You can submit your code online if you log in or register.
Input File: queuesin.txt
Output File: queuesout.txt
Original question:
Implement a queue and show it off by writing an equivalent programme to the one in Stacks.
You may assume that your queue does not grow beyond 100 levels deep.
Sample input:
1 2 3 -1 -1 4 -1 -1 -2
Sample output:
1 1 2 1 2 3 2 3 3 3 4 4 queue is empty!
Privacy
statement
© Australian Mathematics Trust 2001-2023
Page generated: 21 September 2023, 10:25pm AEST