hashtron.hash package

Submodules

hashtron.hash.hash module

class hashtron.hash.hash.Hash[source]

Bases: object

static hash(n: int, s: int, max_val: int) int[source]
static string_hash(in_val: int, s: str) int[source]
static strings_hash(in_val: int, strs: list[str]) int[source]

hashtron.hash.test_hash module

class hashtron.hash.test_hash.TestHash(methodName='runTest')[source]

Bases: TestCase

test_hash()[source]
test_loop_length()[source]
test_string_hash()[source]

Module contents