mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-11-23 15:40:34 -05:00
Update reverse_bits.py
This commit is contained in:
parent
e85b88725f
commit
3fbab4d88f
1 changed files with 4 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# author: bt3gl
|
||||||
|
|
||||||
def reverse_bits(n: int) -> int:
|
def reverse_bits(n: int) -> int:
|
||||||
|
|
||||||
result, base = 0, 31
|
result, base = 0, 31
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue