MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / Letter

Class Letter

data_compression/huffman.py:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class Letter:
7 def __init__(self, letter: str, freq: int):
8 self.letter: str = letter
9 self.freq: int = freq
10 self.bitstring: dict[str, str] = {}
11
12 def __repr__(self) -> str:
13 return f"{self.letter}:{self.freq}"
14
15
16class TreeNode:

Callers 1

parse_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected