message: Update unique-paths-ii.py
  Modified the solution to a much simpler code
diff: @@ -24,29 +24,23 @@ class Solution:
  # @param obstacleGrid, a list of lists of integers
  # @return an integer
  def uniquePathsWithObstacles(self, obstacleGrid):
  + """
  + :type obstacleGrid: List[List[int]]
  + :rtype: int
  + """
  m, n = len(obstacleGrid), len(obstacleGrid[0])
  - ways = [0] * n
  - if obstacleGrid[0][0] == 0:
  + ways = [0]*n
  ways[0] = 1
  -
  - for j in xrange(1, n):
  - if obstacleGrid[0][j] == 1:
  - ways[j] = 0
  - else:
  - ways[j] = ways[j - 1]
  -
  - for i in xrange(1, m):
  + for i in range(m):
  if obstacleGrid[i][0] == 1:
  ways[0] = 0
  -
  - for j in xrange(1, n):
  + for j in range(n):
  if obstacleGrid[i][j] == 1:
  ways[j] = 0
  - else:
  + elif j>0:
  ways[j] += ways[j-1]
  -
  - return ways[n - 1]
  + return ways[-1]
  if __name__ == "__main__":
  obstacleGrid = [
  