Sollicitatievraag bij Viasat

Convert an int to a binary string

Antwoord op sollicitatievraag

Anoniem

11 okt 2017

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

1