Challenge 'Didactic Bytes'

Post Reply
Drew
Posts: 2
Joined: Thu Jun 25, 2009 6:52 am

Challenge 'Didactic Bytes'

Post 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?
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post by gfoot »

Your calculation is wrong. Convert the answer you got back again and see where it fails to match up.
Drew
Posts: 2
Joined: Thu Jun 25, 2009 6:52 am

Post by Drew »

Thanks, I guess I need some more practice converting decimal to binary.
Post Reply