题目来源 63. 不同路径 II
递归
class Solution {public int uniquePathsWithObstacles(int[][] obstacleGrid) {int row obstacleGrid.length-1;int col obstacleGrid[0].length-1;return process(row,col,0,0,obstacleGrid);}private int process(int row ,int col,int i…
Sherlock has a new girlfriend (so unlike him!). Valentines day is coming and he wants to gift her some jewelry.
He bought n pieces of jewelry. The i-th piece has price equal to i 1, that is, the prices of the jewelry are 2, 3, 4, ... n 1.
Watson…