The correct answer is 10, of course!
(assuming the numbers are given in binary and operations are bitwise)
Did people lose their basic math skills ?
The correct answer is 10, of course!
(assuming the numbers are given in binary and operations are bitwise)
you made me panick for a second but if it was binary it would be zero :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
"Bitwise operations" are the important keywords in this approach.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Can you explain. I don't get it :-) ?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Consider two bitstrings:
0101101011
1001011110
Their bitwise multiplication (aka "logical and") is the following string:
0001001010
Their bitwise addition (=subtraction, aka "logical xor") is the following string:
1100110101
"Bitwise" means you perform the operation separately for each corresponding bit. The first bit of the first string is 0, the first bit of the second string is 1, their product is 0, and their sum is 1 - these are the first bits of the corresponding result bitstrings, and so on.
Note that 1+1 is defined as 0, i.e. you "overflow the bit value", although this is not even important for the problem at hand.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks very clear
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
omg stawp
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit