Page 1 of 1

Challenge 'Didactic Bytes'

Posted: Fri Jun 26, 2009 2:14 am
by Drew
I'm apparently having some trouble on Didactic Bytes, I'm going to share my results in case they help indicate where I'm going astray, therefore there may be some spoilers... though my result ends up incorrect so they can't be spoiling too much :P

I converted 199, 77, and 202 into bytes and got:
199 - 11000111
77 - 01001101
202 - 11001010

then I put them together into a 24 bit long string which looks like this: 110001110100110111001010 (199 then 77 then 202)

I then took that as a single binary number and converted into decimal, and got: 26043146, which is not the answer.

I've double checked all of the math, but apparently I'm missing something?

Posted: Fri Jun 26, 2009 2:34 am
by gfoot
Your calculation is wrong. Convert the answer you got back again and see where it fails to match up.

Posted: Fri Jun 26, 2009 2:46 am
by Drew
Thanks, I guess I need some more practice converting decimal to binary.