employer cover photo
employer logo
employer logo

Oculus VR

Acquired by Meta

Is this your company?

Oculus VR interview question

How would you send an encoded message in an image. First encode it, then write code to decode it.

Interview Answer

Anonymous

18 Jan 2016

I would always start with the simplest and fairly obvious answer; I would put the message to least significant bit layer of the image. The receiving end would only read the least significant bit layer of the image accordingly to decode the message. The least significant bit is invisible to the human eye. Test yourself by painting a rectangle with two reds next to each other of values (255,0,0) and (254,0,0). See if you can tell the difference.