+ 2
Challange :identify the minimum number of bits required to represent a number?
ex: input:5 output :3 input 4 output:3
4 Answers
+ 12
ăŻă ( ̄â˝ďżŁ)ă
https://code.sololearn.com/WbkRsXE1ybj4/?ref=app
+ 10
JavaScript:
alert((prompt("") - 0).toString(2).length);
+ 1
And Python:
print(int(input()).bit_length())
:^)