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.
Since you have posted this in 12 other forums, and have received an answer in C in one of them, I will help everybody out by letting them know not to bother. You have your actual code in C, now YOU should translate that into Java.
Bookmarks