Hi Guys,
This was asked in one of the interviews and i cant seem to find any clue about it. The question is:
I have 40 x 20 screen, and i want to store these pixels in a byte array so that i can reconstruct this screen again from the byte array. The size of byte array is 100bytes.
Another way of looking at it is. How do we store a single pixel (x,y) using one bit. Since, there are 40 * 20 = 800 pixels and we have 100 bytes.
Any hints/ideas or reference links will be helpful
Thanks, Chander