Skip to main content

A library of Data Structures and Algorithms written in Python

Project description

ofnodes

License Python Version

ofnodes is a Python Package providing examples of the Author's ability to implement data structures and algorithms in Python. It is not a substitute for built-in or other third-party implementations of the same data structures and algorithms. It aims to illustrate the author's ability to produce a distributable package of objects behind a thoughtful user interface.

Features

Here is what ofnodes can do: - implement a node object with a unidirectional pointer - implement and manipulate a linked list object of unidirectional, i.e., 'singly linked' nodes.

Installation

pip install ofnodes

Usage

# what's a better markdown fenced code block for repl?
>>> llist = SinglyLinkedList()
>>> llist.head = "first node"
>>> llist.head = [42.0, True, "LGRW"]
>>> llist.tail = "third node added to list"
>>> llist
SinglyLinkedList(head=This node's data is 3 of type list., tail=This node's data is 24 of type str.)
>>> llist.tail = None
>>> llist
SinglyLinkedList(head=This node's data is 3 of type list., tail=This node's data is of type NoneType.)
>>> llist.head.next.data
'first node'
>>> llist.remove_tail()
>>> llist.tail.data
'third node added to list'

For more usage examples, please refer to the Documentation

Documentation

For detailed usage information , API reference, and code examples, please refer to the Documentation.

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

ofnodes-1.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ofnodes-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ofnodes-1.0.1.tar.gz.

File metadata

  • Download URL: ofnodes-1.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.4 Linux/6.5.0-26-generic

File hashes

Hashes for ofnodes-1.0.1.tar.gz
Algorithm Hash digest
SHA256 614ac622fa83da1d3d07232324bbdd15c884f067dbe334be96bb8640f2a0152b
MD5 fa247153c694707e123de53faf3b8f80
BLAKE2b-256 d662f97e965ac0ee45aeecb36ce15671c9bceca156e5c431a7f4d8e353c18d0f

See more details on using hashes here.

File details

Details for the file ofnodes-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ofnodes-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.4 Linux/6.5.0-26-generic

File hashes

Hashes for ofnodes-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c8f593559e3af69dfca083534f575ed0a7341330ecfdf82a52afe1c36588045
MD5 ff6998a0075a5745f3af9faffe9f2829
BLAKE2b-256 f6610fd904eb9fb2e97caba791241de51c26c8af8d9614ec023b4ea1519ea90f

See more details on using hashes here.

Supported by

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