Skip to main content

Stacks and Queues

  • Chapter
  • First Online:
JavaScript Data Structures and Algorithms
  • 4951 Accesses

Abstract

This chapter covers stacks and queues; both are versatile data structures commonly used in the implementation of other, more complex data structures. You will learn what stacks and queues are, how and when they are used, and how to implement them. Finally, the exercises will help you to understand these concepts as well as when to apply stacks and queues to an algorithmic problem.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://github.com/Apress/js-data-structures-and-algorithms

  2. 2.

    https://github.com/Apress/js-data-structures-and-algorithms

  3. 3.

    This could be improved to O(1) with a linked-list implementation.

  4. 4.

    https://github.com/Apress/js-data-structures-and-algorithms

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Sammie Bae

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Bae, S. (2019). Stacks and Queues. In: JavaScript Data Structures and Algorithms. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3988-9_12

Download citation

Publish with us

Policies and ethics