LearnPy Hub
← Recursion & Lambda problems
Medium

Binary by Recursion

Write a recursive function that returns the binary form of a non-negative integer as a string.

Input

One integer ≥ 0.

Output

Binary digits.

Sample 1

Input
5
Output
101

Sample 2

Input
0
Output
0
solution.py
Output appears here
Binary by Recursion · Python practice problem · LearnPy Hub