Skip to main content

Custom Stack & Queue

Project description

CyStack

CyStack is a small collection of FIFO and FILO data structures. In both cases the internal data structure is an std::vector.

Installation

pip install CyStack

CyStack: Iterator

Integer FILO Data Structure

  • push: adds an int value to the stack
  • pop: removes and returns the newest int value
  • Implements:
    • __init__: Takes any iterable
    • __iter__: Iterator
    • __len__: Size
    • __str__: String

CyQueue: Iterator

Integer FIFO Data Structure

  • push: adds an int value to the queue
  • pop: removes and returns the oldest int value
  • Implements:
    • __init__: Takes any iterable
    • __iter__: Iterator
    • __len__: Size
    • __str__: String

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CyStack-0.1.4.tar.gz (44.6 kB view hashes)

Uploaded Source

Built Distribution

CyStack-0.1.4-cp38-cp38-macosx_10_9_x86_64.whl (30.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page