Skip to content

Commit 62b2492

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 11cf5b1 commit 62b2492

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

bit_manipulation/max_xor_bit_trie.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ class TrieNode:
1818
"""Node of the Bitwise Trie."""
1919

2020
def __init__(self) -> None:
21-
self.child: list[TrieNode | None] = [None, None] # child[0] for bit 0, child[1] for bit 1
21+
self.child: list[TrieNode | None] = [
22+
None,
23+
None,
24+
] # child[0] for bit 0, child[1] for bit 1
2225

2326

2427
class BitwiseTrieMaxXOR:
@@ -111,7 +114,9 @@ def find_maximum_xor(self, nums: list[int]) -> int:
111114
print("All doctests passed!")
112115

113116
# Manual test suite
114-
print("\n************ Manual Testing Bitwise Trie Maximum XOR Algorithm ************\n")
117+
print(
118+
"\n************ Manual Testing Bitwise Trie Maximum XOR Algorithm ************\n"
119+
)
115120
test_cases = [
116121
([3, 10, 5, 25, 2, 8], 28),
117122
([42], 0),

0 commit comments

Comments
 (0)