A C++ optimized bitmask implementation with Python bindings
Project description
Installation
pip install bitmask26
Usage
Bitmask26(word1) <= Bitmask(word2) return True if all letters of word1 is in word2.
from bitmask26 import Bitmask26
Bitmask26('flee') <= Bitmask26('eefl') # True
Bitmask26('elf') <= Bitmask26('eefl') # True
Bitmask26('left') <= Bitmask26('eefl') # False
Bitmask26('cap') <= Bitmask26('eefl') # False
Bitmask26('fell') <= Bitmask26('eefl') # True
Building
py_bitmask26.py has the same thing implemented in python.
pip install setuptools wheel twine pybind11
rm -rf build dist *.egg-info
python setup.py sdist
pip install .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitmask26-0.2.0.tar.gz
(2.7 kB
view details)
File details
Details for the file bitmask26-0.2.0.tar.gz.
File metadata
- Download URL: bitmask26-0.2.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61ab5244d718b39bf7aef1743ea3fdb6043d6f7ab2d815a7c2401856d1fd1e72
|
|
| MD5 |
390e606de71ffe4dae61a980c8e52dff
|
|
| BLAKE2b-256 |
c62cc066566a2759738a49007a509fb964125dbff4837d962eea81b2bd1c9676
|