Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jcgoran/sortedcounter-cpp
- Owner: JCGoran
- License: mit
- Created: 2024-09-15T20:56:00.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T17:05:53.000Z (3 months ago)
- Last Synced: 2024-11-11T18:19:36.653Z (3 months ago)
- Language: C++
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).