mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-23 08:51:31 -04:00
Update count_1s.py
This commit is contained in:
parent
818626f205
commit
e85b88725f
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# author: bt3gl
|
||||||
|
|
||||||
|
|
||||||
def count_ones(n: int) -> int:
|
def count_ones(n: int) -> int:
|
||||||
|
|
||||||
counter = 0
|
counter = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue