mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
implement sdbm hash algorithm (#2094)
* implement sdbm hash algorithm * fix bug: styling * fix styling for decimal_to_any
This commit is contained in:
@ -99,6 +99,8 @@ if __name__ == "__main__":
|
||||
for base in range(2, 37):
|
||||
for num in range(1000):
|
||||
assert int(decimal_to_any(num, base), base) == num, (
|
||||
num, base, decimal_to_any(num, base),
|
||||
int(decimal_to_any(num, base), base)
|
||||
)
|
||||
num,
|
||||
base,
|
||||
decimal_to_any(num, base),
|
||||
int(decimal_to_any(num, base), base),
|
||||
)
|
||||
|
Reference in New Issue
Block a user