Solved partition problem