Question
Using stacks, how to obtain the binary representation of the number?
Answer: Option C
Was this answer helpful ?
Here instead of adding the digits to an array, you push it into a stack and while printing, pop it from the stack.
Was this answer helpful ?
Submit Solution