"0 lines" Python
class NumArray(object):\n        def __init__(self, nums):\n            self.update = nums.__setitem__\n            self.sumRange = lambda i, j: sum(nums[i:j+1]
    class NumArray(object):\n        def __init__(self, nums):\n            self.update = nums.__setitem__\n            self.sumRange = lambda i, j: sum(nums[i:j+1])\n\nI added two lines, but I also removed two lines, so zero overall, right? Just kidding :-P\n\nNot a serious solution, just showing some Python trickery. The `sumRange` takes linear time, but due to the test suite being weak, this solution gets accepted (in about 1200-1300ms).
['Python']