I am trying to add a constant num_to_add to each list element of list I within a splice l[i:j(inclusive)] where I am given many queries of form [i, j, num_to_add].I am trying to add a constant num_to_add to eac
I am trying to add a constant num_to_add to each list element of list I within a splice l[i:j(inclusive)] where I am given many queries of form [i, j, num_to_add].I am trying to add a constant num_to_add to eac