Grokking the Art of Recursion for Coding Interviews
Ask Author
Back to course home

0% completed

Solution: Converting Decimal to Binary

Problem Statement

Write a Recursive Procedure to Convert a Decimal Number to a Binary Equivalent.

Given a decimal number, we need to convert it to its binary representation, as explained in the following table:

Input(s)Output(s)Explanation

.....

.....

.....

Like the course? Get enrolled and start learning!