Skip to content

Commit 8afb302

Browse files
authored
Merge pull request thuva4#102 from r-o-k-u-r-o-u/master
Added Unary Coding for Python
2 parents e2e2c82 + 5c729f2 commit 8afb302

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

UnaryCoding/Python/UnaryCoding.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def unaryCoding(number):
2+
return ('1' * number) + '0'

0 commit comments

Comments
 (0)