Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 314 Bytes

File metadata and controls

14 lines (10 loc) · 314 Bytes

Problem 16: The Binary Decoder (Decimal to Binary)

Problem Statement

Given a non-negative integer n, convert it to its binary representation as a string using recursion.

Input Format

  • A non-negative integer n.

Example

Input: n = 10
Output: "1010"

Input: n = 0
Output: "0"