The Painter’s Partition Problem

3. NlogM algorithm

http://leetcode.com/2011/04/the-painters-partition-problem-part-ii.html