Viasat interview question

Convert an int to a binary string

Interview Answer

Anonymous

11 Oct 2017

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

1