From 3fbab4d88f1a1ccca8130ee3f28faea42b39163f Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-google@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:57:01 -0700 Subject: [PATCH] Update reverse_bits.py --- bit_manipulation/reverse_bits.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bit_manipulation/reverse_bits.py b/bit_manipulation/reverse_bits.py index 14f68f8..cf2984f 100644 --- a/bit_manipulation/reverse_bits.py +++ b/bit_manipulation/reverse_bits.py @@ -1,3 +1,7 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# author: bt3gl + def reverse_bits(n: int) -> int: result, base = 0, 31