*Originally Posted by ***nomss**

I have to calculate the maximum block in a binary number.

For ex:

Binary representation = 11111

Maximum block length = 5

Binary representation = 10111011

Maximum block length = 3

Above are the only 2 examples my professor gave.

"Compute the maximum block length of the binary

representation." This is what he said. I'm assuming this includes 0s as well. I really don't know how to go about it.

Firstly, as NormR has said, what is block length? There is no such thing as a block, let alone block lengths in binary representations. I assume your talking about maximum number of bytes or bits? But you'd have to clarify that.
Tweet This+ 1 thisPost To Linkedin