JOIN
 Select a Forum     Round Tables New Member Discussions News Discussions Algorithm Matches Marathon Matches NASA Tournament Lab TopCoder Cookbook High School Matches Sponsor Discussions Development Forums Design Forums Search | Watch Thread  |  My Post History  |  My Watches  |  User Settings View: Flat  | Threaded  | Tree Previous Thread  |  Next Thread Forums Tutorial Discussions A bit of fun: fun with bits How is ~1010 = 11110101?
 How is ~1010 = 11110101? | Reply The article was great but I could not understand if A = 1010, how is ~A = 11110101?Quoting the paragraph from https://www.topcoder.com/community/data-science/data-science-tutorials/a-bit-of-fun-fun-with-bits/ below:"Thus, if A is 1010 and B is 1100, thenA & B = 1000A | B = 1110A ^ B = 0110 ~A = 11110101 (the number of 1's depends on the type of A). "
 Subject Author Date How is ~1010 = 11110101? akshaynagpal Jul 5, 2016 at 4:35 AM EDT Re: How is ~1010 = 11110101? akshaynagpal Jul 5, 2016 at 4:38 AM EDT
 Forums Tutorial Discussions A bit of fun: fun with bits How is ~1010 = 11110101? Previous Thread  |  Next Thread