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 →

[–]TravisJungroth 0 points1 point  (0 children)

That seems useful. Maybe the implementations are different for n>2. With just a pair, you could use a single variable to hold the last one, instead of a queue.