Can someone explain to me the format of input ?


  • 0
    J

    It says the input is this:

    [-1]
    [1,0,1]
    [[0,1]]
    [[0,0],[0,0]]

    What does it mean ? What function is it calling ? I have no idea what that input is supposed to mean ?


  • 0
    J

    the first line is the input array
    the thrid line is the parameters for update calls, in this case, there's one such call
    the fourth line is the parameters for sum calls, in this case, there's two such calls
    the second line indicates the order of which the calls are issued, 1 means sum call, 0 means update call.
    got it?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.