MCPcopy Create free account
hub / github.com/douchuan/algorithm / Count

Class Count

src/strings/count.rs:5–5  ·  view source on GitHub ↗

computing the frequency of occurrence of each character over a given alphabet

Source from the content-addressed store, hash-verified

3/// computing the frequency of occurrence of each
4/// character over a given alphabet
5pub struct Count;
6
7impl Count {
8 pub fn compute(alphabet: &Alphabet, s: &str) -> Vec<usize> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected