Jan-06-2021, 05:47 AM
Clever. I didn't think about '000' > '00' > '0'.
To be honest I've never heard about "binary gap" and a google search indicates it is a made up programming exercise thing. You are correct. The descriptions mention consecutive zeroes surrounded by ones.
To be honest I've never heard about "binary gap" and a google search indicates it is a made up programming exercise thing. You are correct. The descriptions mention consecutive zeroes surrounded by ones.