mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Create codespell.yml (#1698)
* fixup! Format Python code with psf/black push * Create codespell.yml * fixup! Format Python code with psf/black push
This commit is contained in:
@ -157,11 +157,11 @@ if __name__ == "__main__":
|
||||
entry_msg = "Provide a string that I will generate its BWT transform: "
|
||||
s = input(entry_msg).strip()
|
||||
result = bwt_transform(s)
|
||||
bwt_output_msg = "Burrows Wheeler tranform for string '{}' results in '{}'"
|
||||
bwt_output_msg = "Burrows Wheeler transform for string '{}' results in '{}'"
|
||||
print(bwt_output_msg.format(s, result["bwt_string"]))
|
||||
original_string = reverse_bwt(result["bwt_string"], result["idx_original_string"])
|
||||
fmt = (
|
||||
"Reversing Burrows Wheeler tranform for entry '{}' we get original"
|
||||
"Reversing Burrows Wheeler transform for entry '{}' we get original"
|
||||
" string '{}'"
|
||||
)
|
||||
print(fmt.format(result["bwt_string"], original_string))
|
||||
|
Reference in New Issue
Block a user