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.
Two integers a and b.
Return the binary representation of both numbers.
Input:
a = 10
b = 7
Binary representations:
10 → 1010
7 → 111
Output:
1010 111
Input:
a = 5
b = 12
5 → 101
12 → 1100
Output:
101 1100
1 ≤ a, b ≤ 10^9
Expert in Data Structures & Algorithms. Building tools to help developers crack FAANG interviews.
Willingness • Pending
Willingness • Pending
VISA • Pending
VISA • Pending
VISA • Pending