News for hackers. Stuff that matters.
Re:Typical programming interview questions. by thangalin on Monday February 21, 2011 @02:37AM (#2244664)
An absurd question that reveals little about a person's programming ability. I would change the question entirely:

On a Cartesian grid is drawn a solid logo (e.g., show a picture of the Batman logo from the 1989 film), where each square represents a black or white pixel. How would you represent the image if you had to type the data points by hand for the computer to draw?

Both questions elude to run-length encoding.

Re:Typical programming interview questions. by lurker19 on Monday February 21, 2011 @12:15PM (#2246166)
To elude encoding, run length. To allude to run-length encoding, zip.