solved 'Jump Game II' on LeetCode http://oj.leetcode.com/problems/jump-game-ii/