Given a very very long binary string, how do we find the exponent of biggest $2^n$ power in a decimal representation. We can't convert it into decimal as it will not fit any data type.
For eg - if string is $10111$ = $23_{10} $ then the answer is $16(=2^4)$
I was thinking of it has to do with the position of the leading $1$. Can someone help me out ?