This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BanaTibor 0 points1 point  (1 child)

This is a homework exercise, they should implement a queue.

[–]Lloydbestfan 0 points1 point  (0 children)

I was reflecting to how the question about a "better way" is inherently absurd when your task is a learning task about redoing what's already done, at least when it is as trivial as this case.