Registry / Library

library · v0.1.1
Sorted Overlap Count
Count the multiset intersection of two sorted vectors while honoring repeated keys on both sides.
Use Sorted Overlap Count
use vendor::sorted_overlap_count::sorted_overlap_count;
Run the example
nest demo sorted_overlap_count@0.1.1
blyxc native-run sorted_overlap_count-demo/main.blyx
Example source and expected output
use vendor::sorted_overlap_count::sorted_overlap_count;
fn main() {
println!(sorted_overlap_count([1,2,2,2],[2,2,4]));
}
Expected output
2
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | ad6dcddd00 | dd0d2d8375cb6751cdb5c91fa465dfe417aa7fd9ff49bace73ca8619178dd1ed |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | edc86a3422b8f313cbc48aa39b5d48bd91a0336bf778a6288abc7d4e93457b6e |