We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It's the difference between signed and unsigned numbers. Signed numbers take one bit to save the -/+ state and thus the max number would be something like 0111...1 (since the first bit is usually the sign bit) not 1111...1
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping bits
You are viewing a single comment's thread. Return to all comments →
It's the difference between signed and unsigned numbers. Signed numbers take one bit to save the -/+ state and thus the max number would be something like 0111...1 (since the first bit is usually the sign bit) not 1111...1