This is a verified interview question from Willingness. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Binary Conversion - Willingness Online Assessment IIT BHU" covers key patterns like DP.
"Given a pair of integers, convert each integer into its **binary representation** and return the corresponding binary values. For each number, represent it in binary **without leading zeroes**. ### Input Two integers `a` and `b`. ### Output Return the binary representation of both numbers. ### Example 1 ```text Input: a = 10 b = 7 ``` Binary representations: ```text 10 → 1010 7 → 111 ``` ```text Output: 1010 111 ``` ### Example 2 ```text Input: a = 5 b = 12 ``` ```text 5 → 101 12 → 1100 ``` ```text Output: 101 1100 ``` ### Constraints ```text 1 ≤ a, b ≤ 10^9 ```"
Join thousands of developers practicing for Willingness.