News for hackers. Stuff that matters.
Re:Instagram Engineer Challenge solved with Javascript by the-cakeboss on Wednesday November 16, 2011 @12:35AM (#3241981)
While I didn't look at how he did it, if I were to write something to do this, I would first locate each slice of the image. This could be accomplished using a rudimentary edge detection algorithm ( ie starting from the left, compare each column of pixels with the next, any large differences of course means an edge ). After that I might assign a weighted value to each edge of a slice, and then sort based upon those values.

There are no comments on this comment yet.