From e85b88725ff0051c3d359d564383da27f1620ce1 Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-google@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:56:51 -0700 Subject: [PATCH] Update count_1s.py --- bit_manipulation/count_1s.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bit_manipulation/count_1s.py b/bit_manipulation/count_1s.py index 5b5862b..b841a8e 100644 --- a/bit_manipulation/count_1s.py +++ b/bit_manipulation/count_1s.py @@ -1,3 +1,8 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# author: bt3gl + + def count_ones(n: int) -> int: counter = 0