mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-14 13:28:09 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
6e81a51620
commit
5a6275bf5e
|
@ -57,7 +57,7 @@ rather the position to the right of the bit index.
|
||||||
It's not so bad once you get the hang of it, although it can still be a
|
It's not so bad once you get the hang of it, although it can still be a
|
||||||
bear to debug. In the insert example above, the result of inserting 0b11
|
bear to debug. In the insert example above, the result of inserting 0b11
|
||||||
in the center ( index=3 ) or to the right ( index=2 ) produces the same
|
in the center ( index=3 ) or to the right ( index=2 ) produces the same
|
||||||
correct result despite the misspecification. These algorithms are very
|
correct result despite the misspecification. These algorithms are very
|
||||||
fast but can be touchy at times.
|
fast but can be touchy at times.
|
||||||
|
|
||||||
Various bit insert/remove solutions exist using bin() string functions
|
Various bit insert/remove solutions exist using bin() string functions
|
||||||
|
@ -247,7 +247,6 @@ def multibit_remove(bint: int, index: int, bit_len: int) -> int:
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
import doctest
|
import doctest
|
||||||
|
|
||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user