Monday, October 18, 2010

Seamcarving Clarification (Code)

Your list-finding algorithm should be greedy; that is, include as many elements as possible. This is a generalization about the comment made with respect to 0's in the documentation (that they should be included). If the list is [3,5,2], you should return [3,2]. Similarly, if the list were [0,3,5,2,0], you should return [0,3,2,0].