message: Update stone-game-vii.py
diff: # Time: O(n^2)
  -# Space: O(n^2)
  +# Space: O(n)
  class Solution(object):
  def stoneGameVII(self, stones):
  @@ -13,8 +13,8 @@ class Solution(object):
  prefix = [0]
  for stone in stones:
  prefix.append(prefix[-1]+stone)
  - dp = [[0 for _ in xrange(len(stones))] for _ in xrange(len(stones))]
  + dp = [[0 for _ in xrange(len(stones))] for _ in xrange(2)]
  for i in reversed(xrange(len(stones))):
  for j in xrange(i+1, len(stones)):
  - dp[i][j] = max(score(i+1, j)-dp[i+1][j], score(i, j-1)-dp[i][j-1])
  + dp[i%2][j] = max(score(i+1, j)-dp[(i+1)%2][j], score(i, j-1)-dp[i%2][j-1])
  return dp[0][-1]
  