About 217 results
Open links in new tab
  1. Stacks and Queues - Princeton University

    Show how to implement a queue using two stacks (and only a constant amount of extra memory) so that each queue operations uses a constant amortized number of stack operations.

  2. Stacks and Queues - Princeton University

    Nov 5, 2020 · In this section, we introduce two closely-related data types for manipulating arbitrarily large collections of objects: the stack and the queue. Stacks and queues are special …

  3. Java. Any implementation of the API implements the stack/queue abstractions. RS+KW. Implementations that do not meet performance specs do not implement the abstractions.

  4. linkedqueue.py - Princeton University

    Below is the syntax highlighted version of linkedqueue.py from §4.3 Stacks and Queues.

  5. Algorithms and Data Structures - Princeton University

    Oct 20, 2017 · Then, we build the most important higher level data structures, including stacks, queues, and symbol tables. 4.1 Performance outlines a scientific method and powerful theory …

  6. ArrayStackOfStrings.java - Princeton University

    Aug 11, 2022 · Below is the syntax highlighted version of ArrayStackOfStrings.java from §4.3 Stacks and Queues.

  7. randomqueue.py - Princeton University

    Below is the syntax highlighted version of randomqueue.py from §4.3 Stacks and Queues.

  8. Stack.java - Princeton University

    Nov 26, 2022 · Below is the syntax highlighted version of Stack.java from §4.3 Stacks and Queues. /****************************************************************************** * Compilation: …

  9. MM1Queue.java - Princeton University

    Jul 9, 2023 · Below is the syntax highlighted version of MM1Queue.java from §4.3 Stacks and Queues.

  10. Stack.java - Princeton University

    Feb 9, 2023 · * It supports the usual <em>push</em> and <em>pop</em> operations, along with methods * for peeking at the top item, testing if the stack is empty, and iterating through * the …