http://leetcode.com/onlinejudge#question_55 solution

1. Line 13, error: for(; j < end; j++)