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 .
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.1.1.tar.gz
(2.1 kB
view details)
File details
Details for the file bitmask26-0.1.1.tar.gz.
File metadata
- Download URL: bitmask26-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0133cfacb2d4f7d8d3e121da664e8b92533ccc199755b57fa63fa4fdcaa72f46
|
|
| MD5 |
49a0625b613c6ff612a1220433e9f257
|
|
| BLAKE2b-256 |
1b36f1b223d1b3100de4afd9f621c7995adae235f300e000551d286b6bbf8eb4
|