Skip to content
Open
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1870c0c
feat: Introduce hamming code generator
AyushChakraborty Oct 6, 2024
aac46ae
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 6, 2024
195144d
fix: Add descriptive naming
AyushChakraborty Oct 6, 2024
9312ec6
Merge branch 'branch1' of
AyushChakraborty Oct 6, 2024
03ef987
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 6, 2024
598a01a
fix: Update changes indicated by failed PR
AyushChakraborty Oct 6, 2024
b720b7a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 6, 2024
4de7668
fix: Update to more readable code
AyushChakraborty Oct 8, 2024
e9d35aa
Merge branch 'branch1' of github.com:AyushChakraborty/TheAlgorithms i…
AyushChakraborty Oct 8, 2024
46a2eee
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
4ff8ddc
fix: Add return statement in elif block
AyushChakraborty Oct 8, 2024
e790a90
Merge branch 'branch1' of github.com:AyushChakraborty/TheAlgorithms i…
AyushChakraborty Oct 8, 2024
a51f39a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
e9a65c7
fix: Update elif to else for more general case
AyushChakraborty Oct 8, 2024
2dcd836
Merge branch 'branch1' of github.com:AyushChakraborty/TheAlgorithms i…
AyushChakraborty Oct 8, 2024
140d8c9
fix: Update primary if statement
AyushChakraborty Oct 8, 2024
0a87aa2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
49325d1
fix: Modify code to pass tests
AyushChakraborty Oct 8, 2024
4fc77ef
Merge branch 'branch1' of
AyushChakraborty Oct 8, 2024
6d5b137
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
827d9d4
fix: Update to pass test cases
AyushChakraborty Oct 8, 2024
bca27fc
Merge branch 'branch1' of github.com:AyushChakraborty/TheAlgorithms i…
AyushChakraborty Oct 8, 2024
172b9bf
fix: Update to pass checks
AyushChakraborty Oct 8, 2024
6817870
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
ac9983e
fix: Update for more readability of code
AyushChakraborty Oct 8, 2024
2f15194
Merge branch 'branch1' of github.com:AyushChakraborty/TheAlgorithms i…
AyushChakraborty Oct 8, 2024
dbea02c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
3e4ed8a
fix: Update for readability
AyushChakraborty Oct 8, 2024
54e8005
Merge branch 'branch1' of
AyushChakraborty Oct 8, 2024
b34076c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
f0ae8f3
fix: Update for readability
AyushChakraborty Oct 8, 2024
d3649da
Merge branch 'branch1' of
AyushChakraborty Oct 8, 2024
defaba9
fix: Update variable names
AyushChakraborty Oct 8, 2024
68e8480
fix: Update to remove unecessary variable (r)
AyushChakraborty Oct 9, 2024
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bit_manipulation/hamming_code_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def hamming_15_11(number: str) -> str:
"Input must be an 11-bit binary string containing only '0's and '1's."

"""
is_bin = True #assuming its binary initially
is_bin = True # assuming its binary initially
for i in number:
if (i not in ("0", "1")):
if i not in ("0", "1"):
is_bin = False
break

Expand Down
Loading