Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jcgoran/sortedcounter-cpp

A version of `collections.Counter` that has a sorting order
https://github.com/jcgoran/sortedcounter-cpp

Last synced: 8 days ago
JSON representation

A version of `collections.Counter` that has a sorting order

Awesome Lists containing this project

README

        

# SortedCounterCPP

## What's this?

A Python package that's like the built-in [`collections.Counter`](https://docs.python.org/3/library/collections.html#collections.Counter), but sorted.
Access to min/max elements is guaranteed to have $O(\log n)$ time complexity.

## Compatibility

CPython only for now.

The API currently supports only elements of C++ type `double` (equivalent to Python's `float`).

## License

See [LICENSE](./LICENSE).