<s> class NumArray ( object ) : <EOL> def __init__ ( self , nums ) : <EOL> """<STR_LIT>""" <EOL> self . accu = [ <NUM_LIT:0> ] <EOL> for num in nums : <EOL> self . accu . append ( self . accu [ - <NUM_LIT:1> ] + num ) , <EOL> def sumRange ( self , i , j ) : <EOL> """<STR_LIT>""" <EOL> return self . accu [ j + <NUM_LIT:1> ] - self . accu [ i ] </s>
