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.
The Two's complement table in the "procedure" paragraph is helpful on the Wikipedia page, as it shows the most significant digit is negative and the rest of the digits are positive, and when those are all added together, you get the negative value: https://en.wikipedia.org/wiki/Two%27s_complement
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
The Two's complement table in the "procedure" paragraph is helpful on the Wikipedia page, as it shows the most significant digit is negative and the rest of the digits are positive, and when those are all added together, you get the negative value: https://en.wikipedia.org/wiki/Two%27s_complement