Viasat Interview Question

Convert an int to a binary string

Interview Answer

Anonymous

Oct 11, 2017

To calculate the number of bits you need you can use log2(int)

1