Metadata-Version: 2.1
Name: snowowl
Version: 0.0.3
Summary: A collection of common data structures
Home-page: https://github.com/greyshell/snowowl
License: GPL-3.0 License
Author: ABHIJIT SINHA
Author-email: grey.shell@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown

# snowowl

A collection of common data structures

## Example: How to use Heap library

```
#!/usr/bin/env python3
author: greyshell

from snowowl import Heap, HeapType


if __name__ == '__main__':
    arr = [5, 9, 2]

    hmin = Heap(arr)  # create a min heap
    print(hmin.peek())  # peek the min item from the heap
    hmin.insert(1)  # insert an item into the heap
    print(hmin.remove())  # remove an item from the heap
    print(hmin)  # print all items from the heap
    print(len(hmin))  # print the length of the heap

    hmax = Heap(arr, HeapType.MAX)  # create a max heap
    print(hmax.peek())  # peek the max item from the heap
    hmax.insert(1)  # insert an item into the heap
    print(hmax.remove())  # remove an item from the heap
```

