Queues: A Tale of Two Stacks

  • + 1 comment

    Just wondering, but stack's don't have length, so it seems like using length violates the purpose of constricting yourself to using stacks. You could pop, then if is empty/peek, replace in stack. Seems like there should be a better way to do that, anyone have thoughts?