Problem description: Visit and Support LintCode Search via Difficulty: Medium Tags: LintCode, Math, O(n^2), O(n), Medium ProblemSolutionCodeProblem